[Vobject] vcard 3.0 parsing error

Jeffrey Harris jeffrey at osafoundation.org
Tue Dec 2 18:58:33 CST 2008


> ... VERSION:3.0
> ... LABEL;TYPE=HOME;ENCODING=QUOTED-PRINTABLE:34 Main St=0D=0A=

I'll note that this is actually invalid, vcard 3.0 exclusively uses
iCalendar style line folding and backslash escaping, no quoted-printable
allowed.  I imagine whatever client emitted it (probably not originally
GMail, but if so, they should probably fix it) is technically buggy.

It's also short the required N property, but who's counting ;)

Using allowQP=True will still work for parsing, but the object you parse
won't re-serialize.

The quoted-printable decoding doesn't set the flag that says "this value
has been decoded, it needs to be encoded to be serialized".  That
probably wouldn't be too hard to fix... if you need this, feel free to
file a bug (or, patches are welcome)!

Sincerely,
Jeffrey


More information about the VObject mailing list