#52 vcard fix

closed-accepted
None
7
2003-01-11
2002-10-30
Kurt Pires
No

Outlook (and I believe Outlook Express too)
denotes "preferred" internet addresses
by "EMAIL;PREF;INTERNET" in their vcards.

I found two bugs in 1.2.9:

1) "EMAIL;INTERNET" was converted
to "email;INTERNET" for comparison to "email;internet"

2) "EMAIL;PREF;INTERNET" not handled.

Attached is a suggested patch to fix both problems.

Kurt

Discussion

  • Kurt Pires
    Kurt Pires
    2002-10-30

    Suggested Patch

     
    Attachments
    • labels: 102901 -->
     
  • Kurt Pires
    Kurt Pires
    2002-10-30

    Logged In: YES
    user_id=465178

    I've been doing a little research on the subject of vCards...

    RFC-2426 (dated 9/1998) has the format defined as:
    EMAIL;TYPE=internet,pref:jane_doe@abc.com

    RFC-2739 (dated 1/2000) has the following example:
    BEGIN:VCARD
    VERSION:3.0
    N:Dun;Alec
    FN:Alec Dun
    ORG:Microsoft Corporation
    ADR;WORK;POSTAL;PARCEL:;;One Microsoft Way;
    Redmond;WA;98052-6399;USA
    TEL;WORK;MSG:+1-206-936-4544
    TEL;WORK;FAX:+1-206-936-7329
    EMAIL;INTERNET:user@host1.com
    CALADRURI;PREF:mailto:user@host1.com
    CALURI;PREF:http://cal.host1.com/user/cal.ics
    FBURL;PREF:http://cal.host1.com/user/fb.ifb
    CALURI:http://cal.company.com/projectA/pjtA.ics
    FBURL:http://cal.company.com/projectA/pjtAfb.ifb
    END:VCARD

    Although this RFC is designed to address LDAP vCard
    entries and not vCard's format, it clearly suggests that
    Microsoft has desided to use a different format than what
    was in RFC-2426.

    Another source (http://www.imc.org/pdi/vcard-21.rtf, a
    Versit Consortium (which included Apple and Lotus)
    defination from 9/1996) indicates that the format is:
    PropertyName [; PropertyParameters] : PropertyValue

    They address that "NOTE;QUOTED-PRINTABLE" is a "valid
    short version" of "NOTE;ENCODING=QUOTED-PRINTABLE".

    Finally, there seems to be a push by w3.org to XML (or
    rather RDF) version 3.0 of the vCard to get around these
    differences.

    So, the trick is to make is read the different standards AND
    the most common uses of it (e.g. MS Outlook) whether it is
    conformant to any of the standards or not.

    I wouldn't my trying my hand at it, but I would like to
    confirm which source I should start with and that no one
    here is addressing the issue presently.

     
  • Kurt Pires
    Kurt Pires
    2002-11-04

    Logged In: YES
    user_id=465178

    BTW, the development version of vcard.php (version 1.15
    obtained via CVS) has the same problems as the 1.2.9
    stable release version of vcard.php (version 1.8.2.4).

    Kurt

     
    • priority: 5 --> 6
     
  • Logged In: YES
    user_id=285765

    Moving to devel.

     
  • Logged In: YES
    user_id=285765

    If you want to work on the vcard code, go right ahead. We
    can always use more developers. You might want to contact
    centaurix@users.sourceforge.net (Stefan Sels) because he
    has been doing some things already.

     
    • priority: 6 --> 7
    • assigned_to: nobody --> kink
     
  • Logged In: YES
    user_id=285765

    Accepted. If you're still interested in vCard development,
    please contact centaurix@users.sourceforge.net (Stefan Sels)
    or join the development mailinglist. We can use your help!

     
    • status: open --> closed-accepted