Skip to content

Commit

Permalink
oxvcard: emit VERSION line before other fields
Browse files Browse the repository at this point in the history
vCard 3.0 did not specify the order of fields, but vCard 4.0 (RFC
6350 §7.9) does.

Fixes: gromox-0.6-10-g9184f78c6
References: GXF-1213
  • Loading branch information
jengelh committed Oct 18, 2023
1 parent 235f2a7 commit b2a555b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
Development 2.15.1
==================

Fixes:

* oxvcard: export to .vcf now positions the VERSION property in accordance with
the vCard 4.0 specification.


Gromox 2.15 (2023-10-18)
========================

Expand Down
2 changes: 1 addition & 1 deletion lib/mapi/oxvcard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ BOOL oxvcard_export(MESSAGE_CONTENT *pmsg, vcard &vcard, GET_PROPIDS get_propids
if (!oxvcard_get_propids(&propids, std::move(get_propids)))
return FALSE;
vcard.clear();
vcard.append_line("PROFILE", "VCARD");
vcard.append_line("VERSION", "4.0");
vcard.append_line("PROFILE", "VCARD");
vcard.append_line("MAILER", "gromox-oxvcard");
vcard.append_line("PRODID", "gromox-oxvcard");

Expand Down

0 comments on commit b2a555b

Please sign in to comment.