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

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

  1. #1
    rafrio is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    24
    Rep Power
    8

    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
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default FolderActionRequest

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

  3. #3
    SuperMario is offline Zimbra Employee
    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
    zibra is offline Loyal Member
    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
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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
    SuperMario is offline Zimbra Employee
    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
    zibra is offline Loyal Member
    Join Date
    Mar 2007
    Posts
    85
    Rep Power
    8

    Default

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

    Thanks,

  8. #8
    gbos is offline Junior Member
    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

  9. #9
    Chodid is offline Intermediate Member
    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

  10. #10
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Postfix problem
    By jimbo in forum Administrators
    Replies: 46
    Last Post: 07-23-2007, 05:24 AM
  2. Automatic reload of inbox?
    By ardiederich in forum Users
    Replies: 4
    Last Post: 04-24-2007, 07: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, 06: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
  •