Results 1 to 3 of 3

Thread: How to delete a speceific message from all users

  1. #1
    ghanedan is offline Active Member
    Join Date
    May 2007
    Location
    Turkey
    Posts
    43
    Rep Power
    7

    Default How to delete a speceific message from all users

    Hi,
    Is threre a way to delete a specific messsage from all users mailboxes ?

    Thanks,

  2. #2
    glitch23 is offline Special Member
    Join Date
    Jul 2006
    Location
    New York, NY
    Posts
    122
    Rep Power
    8

    Default

    Unless someone else chimes in with a better idea, you should be able to find the msg id for the email and then you can script the delete process.

    Something like...

    Code:
    # Get all Accounts
    zmprov gaa | grep mydomain.com$ > /tmp/temp_file 
    
    # Delete message in each account with the matching msg id
    for acct in `cat /tmp/temp_file` ; do
        "zmmailbox -a <admin> -p <password> -m $acct dm <msg id>
    done
    
    # Remove temp_file
    rm -f /tmp/temp_file
    You can probably grep for the message is

    grep phrase <path/to/store/> -R *

    I believe is the right syntax.

  3. #3
    aoddy is offline Active Member
    Join Date
    Dec 2007
    Posts
    30
    Rep Power
    7

    Default I want to need message in all account in distribution list.

    I want to delete all messages in inbox of all account in distribution list.

    I just know when I send message to users in distribution list ,they can get same message but difference message id.

    That is my problem ,I cannot delete email by Message ID (your script needs Message ID) because I must be tried to search Message ID before.

    In my mind, I think a message which I send to distribution list , It should has one Message ID because when I delete this message by Message ID , it should be deleted all inbox of all user. (I think by myself...)


    If you have other solution , please let me know.


    Thanks
    --------------------------------------------------------------------------
    Normal man

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. delete a message in inbox
    By padraig in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 07:06 AM
  4. Replies: 12
    Last Post: 12-29-2005, 02:54 PM
  5. Unable to Move Users to a Domain or Delete Domain
    By Justin Rock in forum Administrators
    Replies: 2
    Last Post: 10-06-2005, 12:23 PM

Posting Permissions

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