nuovo / vCard-parser

Easier and more concise vCard (.vcf) parser for PHP
http://nuovo.lv/
MIT License
125 stars 55 forks source link

E-mail is not parsed from vCard #12

Closed user678 closed 11 years ago

user678 commented 11 years ago

Original issue from CardDAV project, which used your parser.


VERSION:3.0
NICKNAME:alu
EMAIL;TYPE=INTERNET;TYPE=HOME;TYPE=PREF:abu@gmail.com
X-AFTERLOGIC-USE-FRIENDLY-NAME:1
FN:abu
PRODID:-//Afterlogic//6.5.x//EN
UID:b6a17e3a-3b0a-4f8e-9c4d-cec6d570097f
N:apu;asu;;;;
END:VCARD
])
01/11/2012 15:26:20 [ 3524] [DEBUG] [test_dav@afterlogic.com] [android1334515447810] BackendCardDAV->_ParseVCardToAS(vCard fileas [abu])
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O      <Add>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O       <ServerEntryId>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O       b6a17e3a-3b0a-4f8e-9c4d-cec6d570097f
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O       </ServerEntryId>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O       <Data>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        <POOMCONTACTS:FileAs>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        abu
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        </POOMCONTACTS:FileAs>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        <POOMCONTACTS:FirstName>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        asu
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        </POOMCONTACTS:FirstName>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        <POOMCONTACTS:LastName>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        apu
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        </POOMCONTACTS:LastName>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        <POOMCONTACTS2:NickName>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        alu
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O        </POOMCONTACTS2:NickName>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O       </Data>
01/11/2012 15:26:20 [ 3524] [WBXML] [test_dav@afterlogic.com] [android1334515447810] O      </Add>
pilsetnieks commented 11 years ago

Thanks for providing the card example, I'll check it out.

pilsetnieks commented 11 years ago

I got to checking this case but, after adding the missing "begin:vcard" line, the card is parsed just fine with the current version. Perhaps you're using an older version of the code?