Get contents of distribution list from command line
This post : http://zimbra.com/forums/showthread....ribution+lists
was incredibly useful, because it led me to the zmprov command, which has the most wonderfully documented help.
We often get requests by users to post the contents of some of the internal mailing lists. Using the following command I can output the contents of that list, and eventually through a cron job I will have it update our internal wiki server page to always keep the latest copy of the list around.
Go Zimbra!
zmprov gdl listname@company.com | cut -d: -f 2 | mutt -s "Contents of List" recipient@company.com
This sends the list to a recipient via e-mail.