exporting vCards

Daniel Pocock <[email protected]> Sun, 25 Aug 2013 13:05:40 +0200
Newsgroups gmane.comp.cms.opengroupware.user
Message-ID <[email protected]>

Hi,

What is the recommended way to export all contacts for a user to vCard
files?

I tried using wget and inserting all the contact IDs in the URL, one by
one.  This appears to work, but I'm not sure if any fields may have been
missed.  Are all fields definitely included in vCards?

I also notice that when importing to Evolution, it doesn't appear to
like the phones with TYPE=pref - I believe that is a bug in Evolution, I
reported it here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720771

The user in question is aiming to transfer all contact records from
OpenGroupware to DAViCal.  The process I tried so far:

# extract contact-ids.txt from Postgres

cat contact-ids.txt | while read C_ID ;
do
  wget -q -O "${C_ID}.vcf"
"https://ogo-host/OpenGroupware.woa/x/OGoFormLetterAction/download?woinst=1234&companyId=${C_ID}&v=4&ds=person&wosid=567890123456789&format=vCard&kind=winword"
done

cat *.vcf > /tmp/all-contacts.vcf

and then use Evolution "File | Import..." with /tmp/all-contacts.vcf

In the URL, where it has "kind=winword", what other options are
supported and will they help me in any way?

Regards,

Daniel

-- 
OpenGroupware.org Users
[email protected]
http://mail.opengroupware.org/mailman/listinfo/users