Hello,
I'v just had to transfer number of contacts from Thunderbird into Roundcube (ebox-platform 1.4 default, 3.1?). To do that I had to install MoreFunctionsForAddressBook add-on for exporting vCard.
Sadly, not all addresses where imported, because Thunderbird collects (and add-on exports) addresses from received emails, witch has empty Full Name by default, witch is then skipped by vCard importing code.
So in order to import them I wrote a small patch (see attachment) witch uses (preferred) e-mail address if no FN is defined.
Looking differently, maybe it's add-on problem that he exports non-standard vCards? Either way, may the developers judge this! :)
Thanks,
Vincas.
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/ZU/KtJofb3R/rcube_vcard.php.patch Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
List info: http://lists.roundcube.net/users/
On 29.07.2010 11:09, Vincas Dargis wrote:
So in order to import them I wrote a small patch (see attachment) witch uses (preferred) e-mail address if no FN is defined.
Looking differently, maybe it's add-on problem that he exports non-standard vCards? Either way, may the developers judge this! :)
RFC2426 says "The property MUST be present in the vCard object" about N and FN properties. However, I think we should accept vCards without FN.
http://detached.gigo.com/rc/ZU/KtJofb3R/rcube_vcard.php.patch
This is not a patch, use diff, please.
On 2010.07.30 16:45, A.L.E.C wrote:
http://detached.gigo.com/rc/ZU/KtJofb3R/rcube_vcard.php.patch
This is not a patch, use diff, please.
I'm very sorry for that - I have made a mistake while renaming and copying file.
Attached a real patch.
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/sp/1RYfM14G/rcube_vcard.php.patch Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
List info: http://lists.roundcube.net/users/
On 02.08.2010 08:50, Vincas Dargis wrote:
Attached a real patch.
Fixed in r3863.