Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Developers

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 Display Modes
  #1 (permalink)  
Old 08-03-2007, 11:08 AM
Intermediate Member
 
Posts: 24
Default [SOLVED] How can I empty an entire inbox?

I want to empty an inbox - including subfolders - using SOAP. There is already a command (CLI), emptyFolder /Inbox, that will do that.

How can I do that using SOAP? I can't find the specific SOAP call that will do that.

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-03-2007, 01:36 PM
Zimbra Employee
 
Posts: 1,434
Default FolderActionRequest

Code:
<FolderActionRequest xmlns="urn:zimbraMail">
  <action op="empty" id="<folder-id>"/>
</FolderActionRequest>
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 08-06-2007, 04:22 PM
Zimbra Employee
 
Posts: 26
Default

As a reference for the future, one thing that I've found useful is to run the command that I want to find within the Zimbra environment, and then use FireBug to look at the SOAP requests that were generated. This way, you can see what to expect from specific actions, and the SOAP calls that correlate to them.
Reply With Quote
  #4 (permalink)  
Old 08-09-2007, 02:05 AM
Senior Member
 
Posts: 61
Default

Sometime, users want to empty Inbox entirely. But Zimbra Web mail client don't have any options for this thing. Please show me how to solve this problem.
I don't understand how to implement the code which dkarp posted.

Thanks,
Reply With Quote
  #5 (permalink)  
Old 08-09-2007, 11:07 AM
Zimbra Employee
 
Posts: 1,434
Default

In 5.0, you'll be able to empty any folder other than Inbox using the right-click action menu.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 08-09-2007, 12:35 PM
Zimbra Employee
 
Posts: 26
Default

Do you want to add a button that will empty the Inbox? Do you want to add a context option to empty the Inbox? First you should think of the end goal. If waiting for 5.0 is an option, then I would wait to see if the answer dkarp gave will work for you. If it's not, then you might need to decide what you're really trying to accomplish, and then ask a question more relevant to your end goal.
Reply With Quote
  #7 (permalink)  
Old 08-09-2007, 06:51 PM
Senior Member
 
Posts: 61
Default

Many thanks for your reply.
I think that this is a necessary option for users. My users complain me about thing.

Thanks,
Reply With Quote
  #8 (permalink)  
Old 09-02-2009, 11:37 AM
Junior Member
 
Posts: 5
Default Right-click to empty Inbox

We're at 5.0.11, and the Right-click to empty a folder is very valuable. It is greyed out on Inbox. Is that something that can be turned on or activated? Thanks!...Gerrit
__________________
Gerrit Bos
CCS, U. of Guelph
Ontario, Canada
Reply With Quote
  #9 (permalink)  
Old 10-09-2009, 02:56 AM
Junior Member
 
Posts: 8
Default

I would be interested in a solution for this as well. I'm running Zimbra 6 and I can empty any folder except for the inbox. I've got 2000mails in there that i want to delete but to do so page for page would take far too long. Is there any other possibility to do that?

best regards
Reply With Quote
  #10 (permalink)  
Old 10-09-2009, 03:13 AM
Moderator
 
Posts: 5,806
Default

Code:
su - zimbra
zmmailbox -z -m account@domain emptyFolder /Inbox
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0