Results 1 to 3 of 3

Thread: Deleting a message sent to all accounts

  1. #1
    Join Date
    Jun 2007
    Posts
    28
    Rep Power
    8

    Default Deleting a message sent to all accounts

    I am trying to delete several messages that were sent to our entire company via a distribution list.

    How would I go about this?

    I've tried using methods described in these posts with no luck:

    1) http://www.zimbra.com/forums/adminis...s-account.html

    2) http://www.zimbra.com/forums/adminis...all-users.html

    As far as I can tell, deleting a message using "zmmailbox" requires using the message ID that can be found using "zmmboxsearch," which appears to be unique to the message in that particular account. For example: id="91c5acad-8760-4829-a2db-5c8fcba82243:825"

    Where as, I can also get a message ID by looking at the message's source, which has the same ID across all accounts for the same message. For example: "10123721.585421221862318493.JavaMail.root@mail.my domain.com"

    Any suggestions?

    I am basically trying to delete the same message from several accounts b/c the person has sent 30something 5MB messages to 700 accounts and I am running out of disk space as a result.

    Thanks!

  2. #2
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    if you're confident that searching for the specific subject, sender, maybe even date would fetch the right e-mail, couldn't you just script it. Like the logic being

    1. use zmprov gaa to get a list of all accounts
    2. loop through that list, executing zmmboxsearch to find the message
    3. use cut to grab the id from the output of zmmoboxsearch
    4. use zmmailbox to delete the message from the account.

  3. #3
    Join Date
    Jun 2007
    Posts
    28
    Rep Power
    8

    Default

    Okay - I've found the following to address by original need:

    1) Bug/Feature Request to add this ability to Zimbra: Bug 24798 – RFE: Locate and delete messages from multiple mailboxes

    2) Script to remove message based on subject: King0770-Notes - Zimbra :: Wiki

    3) And this Ajcody-User-Management-Topics - Zimbra :: Wiki

    Using the script from #2 along w/ a list of email accounts, I was able to effectively go through all accounts and delete a particular message.

    But now, I have a new question. After doing this, I didn't notice a significant difference in disk space usage.

    When someone sends a 10MB message to hundreds of accounts on the server, how is the disk usage effected? Is it 10MB * the number of accounts? Or does Zimbra do something more efficient for storing the message? I can't figure out how I wasn't able to see any change in disk usage after scanning lots of accounts and large messages.

    Thanks!

Similar Threads

  1. Admin message to all accounts?
    By Billy in forum Users
    Replies: 10
    Last Post: 08-31-2011, 06:41 AM
  2. Deleting (or moving) a message in a Shared Folder crashes Outlook
    By fishloa in forum Zimbra Connector for Outlook
    Replies: 3
    Last Post: 12-01-2008, 09:27 AM
  3. Emails bouncing with "Error Text: 401,'null'"
    By sholden in forum Zimbra Connector for Outlook
    Replies: 27
    Last Post: 08-20-2008, 04:59 PM
  4. 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
  5. Deleting Accounts using Command Line Batch File
    By kurt2 in forum Administrators
    Replies: 7
    Last Post: 04-04-2006, 11:54 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
  •