Mike,
do you know of an efficient way to get:
* for all accounts* from all address books* all email addresses (up to 3 per contact)
My current script is not just damn slow, but causes hiccups on the server possibly due to the sheer amount of java processes fired up:
Code:
ACCOUNTS=$($ZMPROV -l gaa)
# FIXME: getting contacts through zmmailbox is damn slow.........
(for acct in $ACCOUNTS; do ( sleep 2 && $ZMMBOX -z -m "$acct" gact email{,1,2} ) ; done) \
| grep -P 'email[123]?:' \
| awk '{ print $2 " custom_sender_whitelisted"}' \
| tr "[:upper:]" "[:lower:]" | sort -u \
>> $CONF/custom_sender_zimbra_whitelist.tmp