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.
zmprov gdl firstname.lastname@example.org | cut -d: -f 2 | mutt -s "Contents of List" email@example.com
This sends the list to a recipient via e-mail.