I had a mailbox server down and restoring full and incremental backup does not store email messages for period restored (I did zmrestoreoffline to a new server with same ZCS version, some messages appears)
but I can find email for the user that reported lost emails in store folder via bash script such as below
say that person reported not receiving email on 5th of April (there was a planned downtime on that day)
then I find from that list (mails-05042012.txt) for userA@mydomain.comCode:$ grep -ir '5 Apr 2012' /opt/zimbra/store/ | grep .msg | cut -d ':' -f 1 >> /tmp/mails-05042012.txt
..so it will list all .msg files that had userA@mydomain.com on 5th of April, but how do I find attachment for found .msg files?Code:#!/bin/bash for i in `cat /tmp/mails-05042012.txt` do #echo $i grep -ir 'userA@mydomain.com' $i if [ $? -eq 0 ] then echo $i >> /tmp/userA-mails-05042012.txt fi done
If I get this .msg file to a user, the forward to userA, will userA get its attachment with it?