[RCD] Vcard question

rc rc at deltatechnicalservices.com
Tue May 17 06:22:29 CEST 2011


  

I am new to the list, and new to developing for roundcube so sorry
if I am asking a stupid question. 

I am working on the google_contacts
plugin for the 0.6 version. I am having trouble getting all the fields
in the Vcard to save. Specifically I am trying to save the X-AB-EDIT:
field and it never saves yet the rest of the data in my vcard saves just
fine. Here is my code. 

First of all, the $vcard variable holds the
entire vcard including the X-AB-EDIT  

$vc =
rcube_vcard::import($vcard); 
$email = $vc[0]->email[0];
$a_record =
$vc[0]->get_assoc();
$a_record['ab-edit']=$val->edit;
$a_record['vcard']
= $vc[0]->export(); 
$CONTACTS->update($insert_id[0],$a_record); 

it
saves the contents of $vcard perfectly, just not my field X-AB-EDIT: Any
clues why?

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20110516/f1b2d1b0/attachment.html>
-------------- next part --------------
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80


More information about the Dev mailing list