Results 1 to 2 of 2

Thread: how to find attachment for certain .msg?

  1. #1
    Join Date
    Apr 2011
    Rep Power

    Default how to find attachment for certain .msg?

    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)
    $ grep -ir '5 Apr 2012' /opt/zimbra/store/ | grep .msg | cut -d ':' -f 1 >> /tmp/mails-05042012.txt
    then I find from that list (mails-05042012.txt) for

    for i in `cat /tmp/mails-05042012.txt`
        #echo $i
        grep -ir '' $i
        if [ $? -eq 0 ] 
          then echo $i >> /tmp/userA-mails-05042012.txt
      done it will list all .msg files that had on 5th of April, but how do I find attachment for found .msg files?

    If I get this .msg file to a user, the forward to userA, will userA get its attachment with it?

  2. #2
    Join Date
    Apr 2011
    Rep Power


    above method might be inaccurate, but as I could not run any commands especially zmprov to get mailbox id, any other way to get the right recipients?

    $ zmprov gid
    [] INFO: I/O exception ( caught when processing request: Connection refused
    [] INFO: Retrying request
    ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: Connection refused)

Similar Threads

  1. Saving attachment in shared folder to briefcase
    By JonathanDelgado in forum Users
    Replies: 5
    Last Post: 03-13-2012, 07:53 AM
  2. Desktop 2.0 GA and attachment size
    By PRL in forum General Questions
    Replies: 1
    Last Post: 01-27-2011, 01:57 PM
  3. Replies: 2
    Last Post: 10-19-2006, 10:26 PM
  4. I just test the 3.2_M2 find a bug
    By crossany in forum Administrators
    Replies: 2
    Last Post: 07-25-2006, 08:07 AM
  5. Replies: 10
    Last Post: 07-16-2006, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts