Roundcube Community Forum

 

VCard import phone number confusion 0.6-beta

Started by xrxca, August 20, 2011, 10:32:27 PM

Previous topic - Next topic

xrxca

I just tried to import a number of VCards and it worked great except for Work Fax numbers, the cards I'm importing use the following format:

BEGIN:VCARD
VERSION:2.1
N:Last;First
FN:First Last
ORG:Company Name
TITLE:Persons Title
TEL;WORK;VOICE:1 (999) 555-0100
[B][COLOR=#FF0000]TEL;WORK;FAX:1 (999) 555-0102[/COLOR][/B]
ADR;WORK:;;1234 Somewhere Lane;Sometown;Province;P0STCOD;Country
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1234 Somewhere Lane=0D=0ASometown, Province POSTCOD=0D=0ACountry
EMAIL;PREF;INTERNET:[email protected]
REV:20110821T013646Z
END:VCARD

Everything comes in correctly except the TEL;WORK;FAX is changed to a simple Work phone number.

I got around it by adding a line to the cleanup function in rcube_vcard.php that replaces TEL;WORK;FAX with TEL;BUSINESSFAX (not being a regexp guru I just did a simple replace)

SKaero