Hi all,
(this is my first post here, please be indulgent !)
I want to import Contacts from my CRM app, which stores them in a ldap. So far I've succeeded to export these contacts, and converted them to vcf.
Then I could import them in a SharedContacts address book, using
My problem is: I'll have to import these data regularly - so we can send mails to new customers easily. So I will cron this.Code:curl -u my.user:mypassword --data-binary @/home/user/adresses.vcf http://mail.comp.com/service/home/my.user/sharedcontacts?fmt=vcf
Unfortunately, a second "curl / rest" command will add the entries again...
We can use
zmmailbox -z -m my.user emptyFolder /SharedContacts
to clean sharedcontacts before re-importing... but using both CLI and REST sounds unelegant and not obvious to cron.
zmmailbox -z -m my.user pru /SharedContacts /home/user/adresses.vcf
imports bad & useless stuff ;
Is there a way to REST this (some
?)Code:curl http://mail.comp.com/service/home/my.user/sharedcontacts?action=empyFolder
or
to tell zmmailbox to import vcf ? I tried
zmmailbox -z -m my.user pru -c vcf /SharedContacts /home/user/adresses.vcf
without success
Thanks in advance
(and btw, my colleagues appreciate zimbra ui & zimlets a lot !)


LinkBack URL
About LinkBacks

