Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: [SOLVED] How can I empty an entire inbox?

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    24
    Rep Power
    9

    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

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default FolderActionRequest

    Code:
    <FolderActionRequest xmlns="urn:zimbraMail">
      <action op="empty" id="<folder-id>"/>
    </FolderActionRequest>
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Jan 2007
    Posts
    26
    Rep Power
    8

    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.

  4. #4
    Join Date
    Mar 2007
    Posts
    85
    Rep Power
    8

    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,

  5. #5
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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!

  6. #6
    Join Date
    Jan 2007
    Posts
    26
    Rep Power
    8

    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.

  7. #7
    Join Date
    Dec 2007
    Location
    Guelph, On
    Posts
    6
    Rep Power
    7

    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

  8. #8
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    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

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    su - zimbra
    zmmailbox -z -m account@domain emptyFolder /Inbox

  10. #10
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    Default

    Thanks for that quick reply - but now when I try to run the command the output I get is
    /opt/zimbra/bin/zmshutil: line 39: Error: command not found
    Error: executing: /opt/zimbra/bin/zmlocalconfig -q -m export
    do you know what went wrong?

    Thanks
    chodid
    Last edited by Chodid; 10-10-2009 at 05:55 AM.

Similar Threads

  1. Postfix problem
    By jimbo in forum Administrators
    Replies: 46
    Last Post: 07-23-2007, 06:24 AM
  2. Automatic reload of inbox?
    By ardiederich in forum Users
    Replies: 4
    Last Post: 04-24-2007, 08:11 AM
  3. imapsync & dovecot
    By PenguinWrangler in forum Migration
    Replies: 3
    Last Post: 01-18-2007, 03:36 PM
  4. Replies: 3
    Last Post: 01-04-2007, 08:58 AM
  5. Url for accessing the inbox folder.
    By Anuradha in forum Administrators
    Replies: 7
    Last Post: 08-12-2006, 07:28 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
  •