Results 1 to 2 of 2

Thread: how to find attachment for certain .msg?

  1. #1
    malayo is offline Special Member
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    4

    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)
    Code:
    $ 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 userA@mydomain.com

    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
    ..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?

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

  2. #2
    malayo is offline Special Member
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    4

    Default

    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?

    Code:
    $ zmprov gid userA@mydomain.com
    [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
    [] INFO: Retrying request
    ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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, 02: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
  •