Skip to content

[Enhancement] Don't write unnecessary ";" at end of structured properties #57

@rfc2822

Description

@rfc2822

When playing around with iCloud, I have found out that they use the whole line of the structured name (N) as the display name for groups. So, this group:

VERSION:3.0
X-ADDRESSBOOKSERVER-KIND:group
FN:My Group
N:My Group,,,,

will be shown as "My Group,,,,". While this is clearly an iCloud bug, I wonder whether it might be possible to just generate the actually used components, for example N:My Group instead of N:My Group,,,, when only the family name is set. See also the first example in RFC 2426 3.1.2 where the Honorific Suffixes are left out without a trailing ;:

N:Public;John;Quinlan;Mr.;Esq.

instead of

N:Public;John;Quinlan;Mr.;Esq.;

This should be applicable to other structured fields too and could reduce the complexity (and size) of generated VCards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions