Improvements of vcf import
Verfasst: Di 3. Jun 2008, 12:54
I have many vCard contacts saved from other applications in the .vcf file. MPE imports them almost fine. There are some minor problematic fields:
- Sometimes the phone numbers are not imported correctly. Please allow more flexibility during import. For example Mobile field expects the
TEL;CELL;VOICE:
in vcf file. If it is anything else, it is not imported. However, other programs may use
TEL;HOME;CELL:
or something similar. The HOME, and VOICE are optional parameters. If they are or are not present, please, always take it as Mobile number. These parameters are described in RFC 2426 in section 3.3.1. - The same applies to Work number. You expect it to be
TEL;WORK:
in vcf file. It may be also
TEL;WORK;CELL:
Again. The WORK is important here. So ignore CELL or VOICE. - Birthday date is only imported if it is of the form:
BDAY:YYYYMMDD
My vcf files contain also
BDAY:YYYY-MM-DDT, e.g. BDAY:1999-02-12T
Please parse also this format. It is described in RFC 2426 in section 3.1.5. - MPE imports main email only if the field looks like:
EMAIL;INTERNET;PREF:
Usually, vcf contains only
EMAIL;INTERNET:
In this case MPE imports this email into 2. email field and the main email is empty. This is incorrect. Please, place it into main email and use PREF parameter only if there are multiple emails. See RFC 2426 in section 3.3.2.