Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Import contact lists from thunderbird / Mozilla

  1. #11
    thunder04 is offline Special Member
    Join Date
    Dec 2007
    Location
    Stockton, CA
    Posts
    164
    Rep Power
    7

    Default

    Any updates on this issue? I am interested as well!

  2. #12
    caio80 is offline Senior Member
    Join Date
    Mar 2007
    Location
    Ferrara, Italy
    Posts
    55
    Rep Power
    8

    Default

    I had a case in which I created a workaround for this contacts group thing.

    It exploits a SOAP Call called CreateContactRequest, and it's called via zmsoap command as the zimbra user. Therefore, you just need to write a bash script and run it as the zimbra user on your server.

    The main command is the following (in bold the custom parts you need to change or substitute with variables if you loop):

    - run as the zimbra user -
    Code:
    zmsoap -z -m <accountName@domainName.com> -u https://<hostname>:7071/service/admin/soap  -v CreateContactRequest/cn @l=<folderNumber> a="8:<contactGroupListName>" @n="fileAs" ../a="<contactGroupListName>" @n="nickname" ../a="<comma separated email addresses i.e. user1@example.com, user2@example.com, etc.>" @n="dlist" ../a="group" @n="type"
    The folder number (should be 7 for Contacts root folder, pretty much 90% of the time it'll be ok) is obtainable via
    Code:
    zmmailbox -z -m <userName@domainName.com> gaf

    In my lab for example, the following will create a list called "UsersList" inside account user@example.com with two emails as recipients ("user3@example.com, user4@example.com" in the root folder of your contacts section:

    zmsoap -z -m user@example.com -u https://robert-vm.domain.com:7071/service/admin/soap -v CreateContactRequest/cn @l=7 a="8:UsersList" @n="fileAs" ../a="UsersList" @n="nickname" ../a="user3@example.com, user4@example.com" @n="dlist" ../a="group" @n="type"

    According to your scenario, you now just need to harvest the comma separated list from your existing users on the old mail server, and feed into the above.

  3. #13
    Johnny Mnemonic is offline New Member
    Join Date
    Jun 2013
    Posts
    3
    Rep Power
    2

    Default

    Quote Originally Posted by caio80 View Post
    I had a case in which I created a workaround for this contacts group thing.

    It exploits a SOAP Call called CreateContactRequest, and it's called via zmsoap command as the zimbra user. Therefore, you just need to write a bash script and run it as the zimbra user on your server.

    The main command is the following (in bold the custom parts you need to change or substitute with variables if you loop):

    - run as the zimbra user -
    Code:
    zmsoap -z -m <accountName@domainName.com> -u https://<hostname>:7071/service/admin/soap  -v CreateContactRequest/cn @l=<folderNumber> a="8:<contactGroupListName>" @n="fileAs" ../a="<contactGroupListName>" @n="nickname" ../a="<comma separated email addresses i.e. user1@example.com, user2@example.com, etc.>" @n="dlist" ../a="group" @n="type"
    The folder number (should be 7 for Contacts root folder, pretty much 90% of the time it'll be ok) is obtainable via
    Code:
    zmmailbox -z -m <userName@domainName.com> gaf

    In my lab for example, the following will create a list called "UsersList" inside account user@example.com with two emails as recipients ("user3@example.com, user4@example.com" in the root folder of your contacts section:

    zmsoap -z -m user@example.com -u https://robert-vm.domain.com:7071/service/admin/soap -v CreateContactRequest/cn @l=7 a="8:UsersList" @n="fileAs" ../a="UsersList" @n="nickname" ../a="user3@example.com, user4@example.com" @n="dlist" ../a="group" @n="type"

    According to your scenario, you now just need to harvest the comma separated list from your existing users on the old mail server, and feed into the above.
    Hi,
    I'm using this command to create a list inside a test account, the list is created but is empty
    Zimbra version is 8.0.3_GA_5664.FOSS 5-mar-13
    the command used is
    Code:
    zmsoap -z -m testuser@mydomain.com -u https://localhost:7071/service/admin/soap -v CreateContactRequest/cn @l=7 a="8:UsersList" @n="fileAs" ../a="UsersList" @n="nickname" ../a="user3@example.com, user4@example.com" @n="dlist" ../a="group" @n="type"
    Can someone please help me?

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2007, 12:19 PM
  2. Replies: 3
    Last Post: 05-29-2007, 12:20 AM
  3. Import Thunderbird Address Book
    By wickhamandrew in forum Migration
    Replies: 3
    Last Post: 05-24-2007, 10:13 AM
  4. Can't import contact data to OTHER: Web Page?
    By gihrig in forum Administrators
    Replies: 0
    Last Post: 10-11-2006, 02:45 PM
  5. CSV Contact Import
    By jonnyRo in forum Administrators
    Replies: 2
    Last Post: 04-10-2006, 09:42 AM

Posting Permissions

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