_DATE_ function in archive

Alex Neuman alex at nkpanama.com
Wed Jun 13 18:29:59 IST 2007



Scott Silva wrote:
>> ... so I could use year+month instead of year+month+date and then
>> rotate/backup my archive once a month if I used the magic string
>> _SHORTDATE_ instead of _DATE_ ?
>>
>> Thanks in advance...
> That probably wasn't thought of since a month could be a very large datafile.
>
Except that with rulesets, you could have something like:

FromOrTo:   default   /home/archive/mail/general/_SHORTDATE_
From:       alice at domain.com   /home/archive/mail/incoming/alice/_SHORTDATE_
To:         alice at domain.com   /home/archive/mail/outgoing/alice/_SHORTDATE_
From:       bob at domain.com     /home/archive/mail/incoming/bob/_SHORTDATE_
To:         bob at domain.com     /home/archive/mail/outgoing/bob/_SHORTDATE_

That way the file wouldn't grow as much or as easily. If your users 
average less than 2gb/month in or out, it's not a bad solution - you can 
check the archives using IMAP by logging in as the "archive" user.


More information about the MailScanner mailing list