how can i creat contacts in the contact group for a user in bulk .
canthe zmmailbox --file args help on it?
how can i creat contacts in the contact group for a user in bulk .
canthe zmmailbox --file args help on it?
Just type: "help contact" while in zmmailbox and you'll get a list like:
The command you are looking for is "createContact", as in:Code:createContact(cct) [opts] [attr1 value1 [attr2 value2...]] -i/--ignore ignore unknown contact attrs -f/--folder <arg> folder-path-or-id -T/--tags <arg> list of tag ids/names deleteContact(dct) {contact-ids} flagContact(fct) {contact-ids} [0|1*] getAllContacts(gact) [opts] [attr1 [attr2...]] -f/--folder <arg> folder-path-or-id -v/--verbose verbose output getContacts(gct) [opts] {contact-ids} [attr1 [attr2...]] -v/--verbose verbose output modifyContactAttrs(mcta) [opts] {contact-id} [attr1 value1 [attr2 value2...]] -i/--ignore ignore unknown contact attrs -r/--replace replace contact (default is to merge) moveContact(mct) {contact-ids} {dest-folder-path} tagContact(tct) {contact-ids} {tag-name} [0|1*]
In order to easily see all the various attribute names, I'd recommend fully populating a sample contact, then use "getAllContacts" to dump out the contacts and you'll see all the attributes.Code:createContact email foo@bar.com firstName Mark lastName Smith
For example, you'll see something like this:
Code:Id: 282 Folder: /Contacts Date: 12/20/07 19:15 Revision: 27 Attrs: workPhone: (408) 123-4567 email: markmack@example.zimbra.com workURL: http://www.example.zimbra.com firstName: Mark workCountry: US workState: CA company: Zimbra lastName: Mack ...
thanks ..
sending
Last edited by indu; 01-15-2008 at 10:55 PM.
Thanks for the support...contact group=personal distribution list i mean...(i think might be better)
1.This file has to be in csv.
2.The command cct -f/Contacts fileAs 8:<group contact name> dlist user@domain,user2@domain
will be fine to be in the file?
3.if there is 50+users still have to have them typed or can it be passed..
No, the file isn't CSV. The file for "--file" is a series of zmmailbox commands, one per line.
For a contact group/pdl you'l need:
where you'd replace "friends" with the name of the group.Code:cct type group nickname friends fileAs 8:friends dlist "user@domain,user2@domain"
Note you can also you zmmailbox to import a bunch of contacts in CSV format.
That command is "postRestURL":
You can also use:Code:postRestURL contacts /some/file/contacts.csv
to dump out the contacts folder in CSV.Code:getRestURL contacts
Thanks for the prompt reply...
The cct command i had tried was also creating the contact group.
the format dlist "user@domain,user2@domain"
can i import 100+contacts from a csv file into the dlist instaed
Last edited by indu; 01-15-2008 at 11:41 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)