[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mail cleanup?
- To: zimbra-hied-admins <zimbra-hied-admins@sfu.ca>
- Subject: Re: mail cleanup?
- From: Damion Alexander <dalexand@bard.edu>
- Date: Mon, 31 Jan 2011 13:54:47 -0500
- Organization: Bard College
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Thunderbird/3.1.7
----- Original Message -----
From: "Amos" <a.goo0h@gmail.com>
To: "zimbra-hied-admins" <zimbra-hied-admins@sfu.ca>
Sent: Friday, January 28, 2011 1:52:54 PM
Subject: mail cleanup?
<snip>
Is there a way to push a saved search out to all accounts
Amos
zmmailbox -z -m user@domain.edu createSearchFolder -t message
$foldername $query
That is the basic syntax for creating a searchFolder in a user's
account. If you wanted to push that out to all users, I would approach
like this:
zmprov getAllAccounts > accounts.txt
for i in `cat accounts.txt` ; do echo "sm $i" >> addfolder.zm ; echo
"csf -t message $foldername $query" >> addfolder.zm ; done
zmmailbox -z -f addfolder.zm >add.log 2>&1
I used something similar just recently for adding a Calendar to
everyone's account.
--
Damion Alexander
Manager of Networks and Systems
Bard College
Annandale-on-Hudson, NY 12504
(845) 758-7225