Roundcube Community Forum

SVN Releases => SVN Discussion => Topic started by: xrxca on August 20, 2011, 10:32:27 PM

Title: VCard import phone number confusion 0.6-beta
Post by: xrxca on August 20, 2011, 10:32:27 PM
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:

Code: [Select]
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:first.last@notarealaddress.duh
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)
Title: VCard import phone number confusion 0.6-beta
Post by: SKaero on August 22, 2011, 12:14:15 AM
There is a ticket on it #1488046 (vCard "Work fax" issue) (http://trac.roundcube.net/ticket/1488046)