Results 1 to 3 of 3

Thread: Importing Contacts regularly

  1. #1
    FredThu is offline Member
    Join Date
    Apr 2009
    Location
    Beziers, France
    Posts
    11
    Rep Power
    6

    Default Importing Contacts regularly

    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
    Code:
    curl -u my.user:mypassword --data-binary @/home/user/adresses.vcf http://mail.comp.com/service/home/my.user/sharedcontacts?fmt=vcf
    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.

    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 !)

  2. #2
    FredThu is offline Member
    Join Date
    Apr 2009
    Location
    Beziers, France
    Posts
    11
    Rep Power
    6

    Default I found half a solution !

    Some more try & error was successful...

    zmmailbox -z -m my.user pru -c text/x-vcard /SharedContacts /home/user/adresses.vcf

    does import vcf cards (not documented AFAIK)

    This leaves me with 2 questions:
    - how can I "emptyfolders" from REST / curl ? - so I can launch the import from a remote server
    or
    - how can I cron a script using zmmailbox to delete & import the adresses ?

    Of course, if some option is available to import contacts without duplicating existing ones, it will be an even nicer solution...

  3. #3
    FredThu is offline Member
    Join Date
    Apr 2009
    Location
    Beziers, France
    Posts
    11
    Rep Power
    6

    Default

    Well... is it a stupid question, or is there no solution ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Importing Existing Contacts
    By tgrossner in forum Administrators
    Replies: 6
    Last Post: 10-07-2008, 07:47 AM
  2. [SOLVED] Problems importing contacts from evolution
    By phantom21 in forum Administrators
    Replies: 1
    Last Post: 08-15-2008, 12:08 AM
  3. Importing Cardscan contacts through Outlook
    By mtense in forum Administrators
    Replies: 0
    Last Post: 03-04-2008, 07:20 PM
  4. not all contacts importing
    By Spencer in forum Administrators
    Replies: 5
    Last Post: 08-22-2006, 08:06 AM
  5. Replies: 2
    Last Post: 07-20-2006, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •