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 07-31-2007, 01:16 PM
Junior Member
 
Posts: 7
Default [SOLVED] Remove messages from inbox of all users??

Ok, so I think I have Spamassassin killing all of the "you have a greeting card" crap emails that quite a few people have been receiving. My question is.......is there a way to re-scan everyone's inbox to delete all messages with a subject of "you've received a greeting card" ?

Thanks for any info
Reply With Quote
  #2 (permalink)  
Old 07-31-2007, 08:20 PM
Zimbra Employee
 
Posts: 1,434
Default

You can use the zmmailbox CLI to search a user's mailbox for the message in question and also to delete that message.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 07-31-2007, 10:29 PM
Junior Member
 
Posts: 7
Default zmmailbox question

So if I use

zmmailbox -a admin -p <password> -m me@mydomain dm <msg ID>

can I put in multiple message ID's?
Reply With Quote
  #4 (permalink)  
Old 08-01-2007, 04:10 AM
Zimbra Employee
 
Posts: 1,434
Default

Quote:
Originally Posted by bjennings View Post
So if I use

zmmailbox -a admin -p <password> -m me@mydomain dm <msg ID>

can I put in multiple message ID's?
Yes, you can. But please note that these are the numeric internal IDs for the messages in the Zimbra store, not the Message-ID headers from the message bodies.

To search for a message with the Message-ID header <foo@bar>, I believe that you use the search string msgid:foo@bar.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 08-01-2007, 04:49 AM
Junior Member
 
Posts: 7
Default Do you know the context for using multiple ID's

I am able to remove them one at a time, but cannot figure out the separator for multiple emails.

I tried things like

zmmailbox -a admin -p <password> -m me@mydomain dm 40503, 40504

zmmailbox -a admin -p <password> -m me@mydomain dm 40503: 40504

and a few others, but I can't find any documentation on what I should be using.

Thanks for any insite.

And yes, you are right. On my 4.5.6 system, it is <search msgid: (Message_id from email) to get the zimbra id number.

So, for anyone else wondering, Here's what I did:

Use zmmailbox

mbox>adminauthenticate <admin> <password>

mbox> selectMailbox <mailbox_user name>

To search for message ID

mbox> search msgid:465B275C.3090106@isode.com

Last edited by bjennings; 08-01-2007 at 04:57 AM..
Reply With Quote
  #6 (permalink)  
Old 08-01-2007, 08:03 AM
Zimbra Employee
 
Posts: 1,434
Default

Quote:
Originally Posted by bjennings View Post
I am able to remove them one at a time, but cannot figure out the separator for multiple emails.

I tried things like

zmmailbox -a admin -p <password> -m me@mydomain dm 40503, 40504

zmmailbox -a admin -p <password> -m me@mydomain dm 40503: 40504

and a few others, but I can't find any documentation on what I should be using.
Try using spaces as your delimiter. In other words,
Code:
zmmailbox -a admin -p <password> -m me@mydomain dm 40503 40504 40505 40506
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #7 (permalink)  
Old 03-26-2012, 02:58 AM
Loyal Member
 
Posts: 99
Default

and how about the command to remove all messages in all users?
Reply With Quote
  #8 (permalink)  
Old 03-26-2012, 03:18 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Do not add your post to a thread that is as old as this one, start a new thread in future.

Quote:
Originally Posted by malayo View Post
and how about the command to remove all messages in all users?
Why would you actually want to do that? Have you looked at the wiki article and forum threads (or even the cli help) that tell you how to empty an Inbox?
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 03-26-2012, 04:59 AM
Loyal Member
 
Posts: 99
Default

found solution with a script on zimbra wiki about bulk provisioning
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.