View Single Post
Posts: 2 | Thanked: 5 times | Joined on Dec 2013
#9
Originally Posted by mced View Post
PROBLEM: I've got this "catted" VCF file with 84 contacts. Something like this one (numbers and sensible data are fake, of course):

Code:
BEGIN:VCARD
VERSION:2.1
UID:662
REV:2011-05-14T10:21:32Z
TEL;CELL;VOICE:123456789
N:;Alejandra;;;
EMAIL:fakeemail@gmail.com
END:VCARD
BEGIN:VCARD
VERSION:2.1
UID:620
REV:2011-01-21T16:18:53Z
TEL;CELL;VOICE:123456789
N:;Ana;;;
END:VCARD
BEGIN:VCARD
VERSION:2.1
UID:603
REV:2011-01-22T14:27:53Z
TEL;CELL;VOICE:123456789
N:;Antonio;;;
END:VCARD
And so on...
--Transfer VCF file to Home directory.
--Settings - Apps - People does detect it. Tap on "Import from file".
--Just one contact imported: the first one, "Alejandra".
--Try again. Same result.
This problem frequently occurs with VCF files catted together, where one or more of the original files does not have a trailing line-break. The composite file ends up with compound lines containing 'END:VCARDBEGIN:VCARD', which are invalid, and do not correctly delimit contact records. The surrounding records are then rendered invalid, usually by being detected as having more than one field which should be singular, such as 'N' structured name fields.

Chris Adams has recently merged a change to the qtpim module to workaround this problem, but it will takes a while to filter through to a Sailfish release.
 

The Following 3 Users Say Thank You to MattVogt For This Useful Post: