Author Topic: VCard import phone number confusion 0.6-beta  (Read 21436 times)

Offline xrxca

  • Jr. Member
  • **
  • Posts: 22
VCard import phone number confusion 0.6-beta
« 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)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
VCard import phone number confusion 0.6-beta
« Reply #1 on: August 22, 2011, 12:14:15 AM »
There is a ticket on it #1488046 (vCard "Work fax" issue)