allow for incomplete N property values
Brought to you by:
fortuna
Users of Aperture framework have encountered vcf files with following N property values:
N;LANGUAGE=en-us:Mylka;Antoni;;Mr.
The problem here is that a name is composed from five components (family name SEMICOLON given name SEMICOLON comma-separated additional names SEMICOLON comma-separated prefixes SEMICOLON comma-separated suffixes). In this case there are only four. The RFC states that a missing component should be denoted by an empty semicolon. Outlook doesn't follow this rule and truncates empty components at the end of the line. (the same occurs in ADR, as exemplified by the file I submitted to the 2978880 issue)
The attached patch allows for such files to be parsed correctly in relaxed parsing mode.
Thanks Antoni, patch applied and available in CVS.