Results 1 to 4 of 4

Thread: how to import contacts by cli?

  1. #1
    middle6 is offline Active Member
    Join Date
    Feb 2008
    Location
    guangzhou,guangdong,CHINA
    Posts
    26
    Rep Power
    7

    Default how to import contacts by cli?

    As an administrator, I want to import contacts to every user.

    How to do?Import contacts from webclient one by one?

  2. #2
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

  3. #3
    middle6 is offline Active Member
    Join Date
    Feb 2008
    Location
    guangzhou,guangdong,CHINA
    Posts
    26
    Rep Power
    7

    Default

    Quote Originally Posted by Klug View Post
    thanks.But anonther way to import contracts to everyone? maybe some user change his password

  4. #4
    Chewie71 is offline Trained Alumni
    Join Date
    Sep 2006
    Location
    Illinois
    Posts
    371
    Rep Power
    8

    Default

    We found a way to do it with zmmailbox cct to workaround a bug with importing contacts in 5.0.2.

    First we had to convert the .csv we wanted to import and put the entries into a file in "cct" format...something like this...
    Code:
    cct fullName "test" firstName "" lastName "test" email "test@wiu.edu"
    cct fullName "Doe, John" firstName "John" lastName "Doe" nickname "jd" email "jdoe@gmail.com" homeStreet "home add line1\nhome add line2\nhome add line3" workStreet "work add line1\nwork add line2\nwork add line3" homePhone "888-555-1234" workPhone "888-555-1234" mobilePhone "888-555-1234" workFax "888-555-1234" jobTitle "Saleman" company "Doe Consulting" notes "notes line1\nnotes line2\nnotes line3"
    Once that's done we cat that file(filename.cct) and pipe it into a zmmailbox command...something like this...
    Code:
    cat filename.cct | /usr/local/bin/ssh -o StrictHostKeyChecking=no zimbra@zcsserver.mydomain.com zmmailbox -z -m USERNAME
    We used SSH because we're doing it from another system. Obviously if you run it on the mailbox server you could make that simpler.

    Hope that helps.

    Matt

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New feature needed - ZCS Import Wizard @ the CLI
    By reza225 in forum Administrators
    Replies: 11
    Last Post: 07-21-2010, 03:13 AM
  2. ical4j.data.ParserException
    By amit_saini54 in forum Migration
    Replies: 0
    Last Post: 12-06-2007, 07:45 AM
  3. outlook import contacts from pst
    By jsturtevant in forum Administrators
    Replies: 0
    Last Post: 12-17-2006, 03:23 PM
  4. Setting File as: attribute for contacts -- mass import
    By nyamada in forum Administrators
    Replies: 6
    Last Post: 08-31-2006, 01:48 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
  •