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

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 Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-2006, 12:10 PM
Starter Member
 
Posts: 2
Default Sent Mail message lifetime

Is there a way to set the lifetime of the sent mail folder?
Reply With Quote
  #2 (permalink)  
Old 10-13-2006, 12:20 PM
Starter Member
 
Posts: 2
Default Don't know...

But it seems like a good idea to me.
Reply With Quote
  #3 (permalink)  
Old 10-13-2006, 01:11 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #4 (permalink)  
Old 10-19-2006, 12:00 PM
Starter Member
 
Posts: 2
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 admin@domain.com password [ again, use an admin account ]
mbox> sm user_name@domain.com [ 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.