myself wrote:
> For a classical file-based quarantining a template %P may be
> used when forming a file name, which will be replaced by
> a current partition_tag value. This allows for a file-based
> quarantine for example to be split into weekly subdirectories.
> For example:
> cd /var/virusmails
> mkdir -p P21/spam P22/spam P23/spam
> chown -R vscan:vscan P21 P22 P23
> and having:
> $spam_quarantine_method = 'local:P%P/spam/%m.gz';
> $sql_partition_tag =
> sub { my($msginfo)[EMAIL PROTECTED]; iso8601_week($msginfo->rx_time) };
> would store spam into per- partition_tag (e.g. per-week) subdirectories.
> There is one detail left to be resolved for releasing a message
> from such a file-based schema (probably a change in amavisd-release).
> Will think about it later on.
Actually this works just fine, including releasing from such a schema.
I changed my mind and prefer the name Wxx instead of the Pxx now :)
mkdir -p W21/spam W22/spam W23/spam
$spam_quarantine_method = 'local:W%P/spam/%m.gz';
Mark
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/