View Single Post
Posts: 215 | Thanked: 44 times | Joined on Dec 2007
#29
Ok, I am officially ready to give up. While it's technically possible to import a vcf file to GPE Contacts by editing out enough of the content, it's just too much effort to develop an automated file adapter. So far I've probably made more than 500 painstakingly-slow test imports, stumbling over one idiotic non-robust import restriction after another. The lack of any error reporting except "Import failed" makes it horribly difficult to isolate problems. The vcf import routine in this app should be used as a textbook example of how not to write robust programs.

A few examples:

- carriage-return/linefeed are allowed in some fields as the 6-character sequence =0D=0A, but are not allowed in other fields (like the Tel number), disagreeing partly with many of the apps that export vcf files

- long lines can be continued by a trailing = sign - except for some fields (like the Tel field) where the programmer apparently assumed that it would always be short and forgot to check

- if a continuation line after a trailing = anywhere in the file contains only one character, the importer fails - the programmer apparently having assumed that all continuation lines must contain more than one character or you wouldn't have bothered to continue it

Last edited by DJames1; 2008-01-24 at 00:10.