How to get a list of contact folders

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
jmckay123
Posts: 7
Joined: Sat Sep 13, 2014 3:57 am

How to get a list of contact folders

Post by jmckay123 »

I am retrieving contacts using a URL like this:

zimbra.domain.com/home/smith@domain.com/contacts?fmt=csv

I can retrieve a non-default contact folder by specifying something other than "contacts".  However what I am really missing is a way to discover what contact (and calendar/task)
folders already exist - I do not know them in advance.  Is there a URL that will give me some kind of list, in any format, of what is available?






User avatar
Gren Elliot
Advanced member
Advanced member
Posts: 183
Joined: Tue Jun 10, 2014 4:45 am

How to get a list of contact folders

Post by Gren Elliot »

You could use the SOAP API's GetFolderRequest to get a list of Contacts folders (or all folders, or all calendar folders...)

See http://wiki.zimbra.com/wiki/SOAP_API_Re ... th_ZCS_8.0 which has a link to:

https://files.zimbra.com/docs/soap_api/ ... index.html

Look for "GetFolder" under "All Commands".

e.g. using the zmsoap command to get all Contacts folders:

# zmsoap -v -z -t mail -m user1@pan.local GetFolderRequest @view=Contact



view can be Contact/Appointment/Task/Message...
Post Reply