Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-2012, 09:20 PM
Starter Member
 
Posts: 1
Default Export/Copy individual messages

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.