Archiver and AutoDelete rule

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

munwin
Posts: 16
Joined: Tue Oct 31, 2006 11:23 pm

Archiver and AutoDelete rule

Postby munwin » Sun Mar 25, 2007 8:12 pm

I have setup a mailbox to be BCC'd all emails coming in or going out.
Working fine, and all good so far.
What I would like to do is to delete all emails in this mailbox that are older than 30 days, on a constant basis. I can't see anywhere in the rule wizard to delete based on date. Is there another way ?

Any help much appreciated.

jeffs
Posts: 30
Joined: Thu Mar 08, 2007 5:37 pm
Location: Cincinnati, OH

Re: Archiver and AutoDelete rule

Postby jeffs » Sun Mar 25, 2007 9:45 pm

munwin wrote:I have setup a mailbox to be BCC'd all emails coming in or going out.
Working fine, and all good so far.
What I would like to do is to delete all emails in this mailbox that are older than 30 days, on a constant basis.


If that mailbox is also on your Scalix server, you could try running this as root:

Code: Select all

omtidyu -u '(the archive mailbox user)' -Ti -i30 -B -d

or, if you use the ommaint script, add that to the "daily" section. I do something similar with omtidyallu to clean out 'Trash' folders left over from IMAP clients that don't map properly to 'Deleted Items'. This action moves the messages to Deleted Items, where they are cleaned out (for me) three days afterward.

hth

Jeff


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 15 guests

cron