Matthias,
> Is it possilble to change quarantine-settings for "file-naming" of
> quarantined items and where do i have to do this?
> new format:
> /var/lib/amavis/virusmails/spam-zhUP2pIl4N2X.gz
> old format:
> /spam-57db2a646a8cd015efbfbae443b997c6-20060926-200024-32648-02.gz
> I wrote a script which relearns (sa-learn) the spammails (for the
> last month) so it was really easy to grep for the block after
> 2nd "-" , in Format YYYYMMDD, its also much easier to few mails
> easy and fast on the commandline in this format ...
MrC wrote:
| Add or modify the %m macro to meet your needs.
| $spam_quarantine_method = 'local:spam-%m';
Actully these are only simple string replacements,
not full-fledged macros. Currently the following replacements
are available only: %b, %m, %n, %i, as implemented by the
following code in sub mail_to_local_mailbox:
$suggested_filename =~ s{%(.)}
{ $1 eq 'b' ? $msginfo->body_digest
: $1 eq 'm' ? $msginfo->mail_id
: $1 eq 'n' ? $msginfo->log_id
: $1 eq 'i' ? iso8601_timestamp($msginfo->rx_time,1) #,'-')
: $1 eq '%' ? '%' : '%'.$1 }egs;
So the answer to the original question is something like:
$spam_quarantine_method = 'local:spam-%b-%i-%n';
or perhaps a more compact:
$spam_quarantine_method = 'local:spam-%i-%m'
Mark
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/