Re: exporting vCards
"Sebastian Reitenbach" <[email protected]> Mon, 26 Aug 2013 08:57:24 +0200
| Newsgroups | gmane.comp.cms.opengroupware.user |
|---|---|
| Message-ID | <23bf-521afc80-27-6b8b4580@36178256> |
Hi, On Sunday, August 25, 2013 13:05 CEST, Daniel Pocock <[email protected]> wrote: > > > Hi, > > What is the recommended way to export all contacts for a user to vCard > files? Best is to connect to zidestore via webdav: Then here you will find all contacts the user has access to: webdavs://<OGOSERVERNAME>/zidestore/dav/<USERNAME>/public/Contacts And here you'll find all contacts the user marked as private: webdavs://<OGOSERVERNAME>/zidestore/dav/<USERNAME>/Contacts If there are any private contacts, otherwise entering that folder will give you an error message. I guess an other alternative would be using the scripting interface via zOGI. http://code.google.com/p/zogi/ > > 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? The standard vCard fields should be included, but I think if you have configured custom fields to contacts, they will not be included. > > 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? other options are excel and framemaker. Go to a contact page in OGo, and see the Download: possibilities at the top. Check the URL used for each of the alternatives. cheers, Sebastian PS: Did you know that Adam and myself are working on a new version of OpenGroupware on sourceforge, also with new mailing lists? http://sourceforge.net/projects/opengroupware/ > > Regards, > > Daniel > > -- > OpenGroupware.org Users > [email protected] > http://mail.opengroupware.org/mailman/listinfo/users -- OpenGroupware.org Users [email protected] http://mail.opengroupware.org/mailman/listinfo/users