Results 1 to 4 of 4

Thread: Sent Mail message lifetime

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Rep Power

    Default Sent Mail message lifetime

    Is there a way to set the lifetime of the sent mail folder?

  2. #2
    Join Date
    Oct 2006
    Rep Power

    Default Don't know...

    But it seems like a good idea to me.

  3. #3
    Join Date
    Aug 2005
    Rep Power

    Default Not built-in...

    But you could probably script this using zmmailbox to do a search (in:sent before:-4weeks or somesuch) and to then delete the results. Fire that off from cron nightly and you should be set.

    (Warning: test the search query before you start deleting mail!)
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    Join Date
    Oct 2006
    Rep Power

    Default kinda'

    Thanks, dkarp for the suggestion.

    I'm having trouble creating a script to do it, but I have figured out this much:

    ( either su zimbra or run zmmailbox in /opt/zimbra/bin/ )
    zmmailbox -a username -p password [ use an administrator account ]
    mbox> aa password [ again, use an admin account ]
    mbox> sm [ open the mailbox of a user ]
    mbox> s "in:sent is before:-4weeks" [ do the search ]

    I still haven't figured out how to delete them, or how to put the whole thing into a script.

    Thanks for your help to get this far!

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 08:24 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