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?
How to get a list of contact folders
- Gren Elliot
- Advanced member
- Posts: 183
- Joined: Tue Jun 10, 2014 4:45 am
How to get a list of contact folders
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...
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...