Results 1 to 3 of 3

Thread: empty trash and junk mail forlder

  1. #1
    WolfantEc is offline Starter Member
    Join Date
    Aug 2009
    Location
    Quito, Ecuador
    Posts
    2
    Rep Power
    5

    Exclamation empty trash and junk mail forlder

    Hello,

    I have one question, i need to empty the trash and the junk mail folder of my clients before backup my zimbra server, but i don't know how do that,
    i need something like a batch procedure, this can be done?

    Sorry for my English,

    thanks.

  2. #2
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    8

    Default

    Quote Originally Posted by WolfantEc View Post
    Hello,

    I have one question, i need to empty the trash and the junk mail folder of my clients before backup my zimbra server, but i don't know how do that,
    i need something like a batch procedure, this can be done?

    Sorry for my English,

    thanks.
    You might be able to write a shell script that invokes zmmailbox. The best documentation for zmmailbox is built into the command itself--as zimbra, do zmmailbox --help.

    But personally I wouldn't exclude trash and junk from backups. You're keeping them on the live server for a reason. If a user accidentally trashes something, or has something misfiled as junk, and then your server crashes before they realize they need the thing, then they've lost it forever. It is better in my opinion to set account quotas appropriately and to set a reasonable lifetime on Trash and Junk mail.

  3. #3
    Blu3fish is offline New Member
    Join Date
    Jul 2009
    Posts
    3
    Rep Power
    5

    Default zmmailbox command

    zmmailbox -z -a user@domain.com emptyFolder foldername

    foldername = any folders in that users mailbox (i.e. Junk, Trash, etc)

    Then I'd just script that or add to the cron for your purposes.

    Hope this helps.

    Cheers,
    Brennan

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 03-05-2010, 04:11 AM
  2. Searching in the trash
    By p24t in forum Administrators
    Replies: 4
    Last Post: 07-02-2009, 11:09 AM
  3. [SOLVED] scheduled empty trash emtpy junk for users
    By jason in forum Administrators
    Replies: 10
    Last Post: 04-07-2009, 12:13 PM
  4. Replies: 5
    Last Post: 03-04-2009, 11:53 AM
  5. Deleting junk folder mail
    By barbara musgrave in forum General Questions
    Replies: 1
    Last Post: 09-02-2008, 06:20 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
  •