Use of variables within archive rulesets
Mogens Melander
mogens at fumlersoft.dk
Fri May 4 09:27:53 IST 2007
On Fri, May 4, 2007 02:41, Alex Neuman van der Hans wrote:
> I've got a few clients who choose to archive all their incoming and
> outgoing e-mail using the "Archive Mail =" function, using a ruleset
> such as:
>
> From: alice at domain.tld /home/archiveaccount/mail/outgoing/alice
> To: alice at domain.tld /home/archiveaccount/mail/incoming/alice
> FromOrTo: default /home/archiveaccount/mail/BCCs
>
> ... so that mail from alice and to alice goes to the "alice"
> IMAP-accessible "folder" on the "archiveaccount" user's account, and
> those that aren't covered by any of the rules (such as BCCs, users I've
> forgotten to add to the ruleset list, and funky NDRs and stuff) get
> archived to a separate "BCCs and such" account.
>
> I'd like to know if it would be possible to use some sort of variable
> (systemwide or generated) that would allow me to do something like:
>
> From: alice at domain.tld
> /home/archiveaccount/mail/%year%/%month%/outgoing/alice
> To: alice at domain.tld
> /home/archiveaccount/mail/%year%/%month%/incoming/alice
>
> How would one go about this? I believe I'd have to create the structure
> first and change the ownerships and permissions so that the user
> MailScanner runs under can write to it, and the "archiveaccount" user
> can read from it, but besides that I wouldn't know where to begin.
>
> Suggestions?
How about a custom function ? Take a look at the MyExample.pm
in CustomFinctions directory. Mine are located in:
/usr/lib/MailScanner/MailScanner/CustomFunctions
--
Later
Mogens Melander
+45 40 85 71 38
+66 870 133 224
--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.
More information about the MailScanner
mailing list