Hello

I was wondering if anyone had a way to export to zip or copy to another mailbox from command line.

The process needs to search across the entire server for all emails that arriving or were sent to another organisation and then create a copy of these messages either in another mailbox or an archive.

I've got a script to return the message ID's but i can't find a command that will allow me to copy/export.

for acc in `zmprov -l gaa mydomain.com`
do
for msg in `zmmailbox -z -m "$acc" s -t message "To: searchingfor.com or From: searchingfor.com" |awk '{ if (NR!=1) {print}}' | grep -v -e Id -e "-" -e "^$" | awk '{ print $2 }'`
do
echo $msg
done
done

I just can't find anything that will allow me to export. I'm using the open source version so i don't have access to zmsearcharchive or zmmboxsearch.

Thanks