GNOME Bugzilla – Bug 300845
can't import vcf file from apple addressbook.
Last modified: 2008-10-31 12:41:08 UTC
Please describe the problem: vcf file from apple addressbook can't import. i'll attach sample vcf file and patch. Steps to reproduce: 1. import vcf file from apple addressbook 2. 3. Actual results: can't import Expected results: import vcf file Does this happen every time? yes Other information: in guess_vcard_encoding(), buffer size if fixed, and that produce invalid utf16 stream.
Created attachment 45318 [details] sample vcf file from apple addressbook
Created attachment 45319 [details] [review] fill zero until meet char between 0x0000 and 0x00ff
this bug produced by invalid usage of fgets(). fgets() insert char '\0'(0x00) after 'new line'. but fix_utf16_endianness() checks gunichar2 '\0'(0x0000), so utf16_to_utf8() returns NULL with invalid sequence error.
This also happens when you're sent a vcard as an attachment from the apple addressbook (in the particular instance here, the sender was using Microsoft Entourage)
confirming, targetting to 2.5 to force a decision on the patch.
correcting the status whiteboard namespace to keep consistency. sorry for the noise, my fault.
I have no problems importing this vcf file. It imports cleanly and with all the information. So i dont see the need to commit the patch attached here.Please check with the latest version of evolution.
Works fine for me now as well, except that the particular file has the colon quoted in the URL property: item2.URL;type=pref:http\://www.applecomputer.co.kr and evolution doesn't unquote it. But I don't know the vcf format in that regard.
removing old target milestone, at least.
Created attachment 71464 [details] sample vcf file from apple addressbook 2 This is an another vcf file that contains two contacts. Evolution still can't import this.
Evolution doesn't recognize this file as a vCard at all here. Is it a valid vcf file? file(1) doesn't know it either, but it does recognize a .vcf file exported from evolution.
I really doubt someone is working on MAC compatibility. Thanks for taking the time to report this bug; however, closing due to lack of response of the reporter, sorry. if you still see this issue with a current release of evolution (2.24.x or later), please reopen. thanks in advance.