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 05-29-2007, 11:37 PM
Active Member
 
Posts: 43
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,
Reply With Quote
  #2 (permalink)  
Old 05-30-2007, 09:04 AM
Special Member
 
Posts: 122
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.
Reply With Quote
  #3 (permalink)  
Old 06-09-2008, 02:10 AM
Active Member
 
Posts: 30
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
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.