Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No space is allowed between BEGIN: and vcard according to RFC2426 #1

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

VCARDs generated by ez-vcard 0.1.1 cannot be opened by some applications 
(tested with Kontact 4.4.8).

When I change the first line, removing the whitespace, "BEGIN: vcard" to 
"BEGIN:vcard", it works.

Snippit of the RFC2426 VCARD grammar:
########## BEGIN ############
   vcard        = [group "."] "BEGIN" ":" "VCARD" 1*CRLF
                  1*(contentline)
        ;A vCard object MUST include the VERSION, FN and N types.
                  [group "."] "END" ":" "VCARD" 1*CRLF
########### END #############

No space is allowed between ":" and "VCARD".
I'm not sure if lowercase "vcard" is allowed either.

Original issue reported on code.google.com by knuto...@gmail.com on 6 Aug 2012 at 8:47

@GoogleCodeExporter
Copy link
Author

Thanks for the bug report, just noticed it now.  EZ-vCard puts a single space 
character after the colon to make the vCard more human-readable.  I guess this 
should be reconsidered.

In terms of the case sensitivity of "vcard", yeah I think you're right.  The 
2.1 and 3.0 specs seems to require it to be in upper-case.  The 4.0 specs, 
however, specifically state that the value is case-insensitive.  It should be 
converted to uppercase to be compatible with all versions.  Thanks again.

Original comment by mike.angstadt on 9 Aug 2012 at 2:32

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Fix will be included in 0.2.0.

Original comment by mike.angstadt on 10 Aug 2012 at 12:52

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant