Hans,

> >>  $spam_quarantine_method         = 'local:spam/%m.gz';
> >>  $virus_quarantine_method        = 'local:virus/%m';

> OK, there's just one small issue left.  I read in README.customize about
> the macros, and tried out with %s - which would make looking for a
> specific mail a bit easier.  But the filenames come out with "%s" in it
> instead of the value of %s - the same for %m as in your examples:
> spam-%m-f6cf1ebb669a3276673c2507a17db712-20050907-095056-08999-07
> spam-%s-eb78a46b3ffea4dddaaef5b17e092d01-20050907-003651-15917-01
> In my config file, I have:
> $spam_quarantine_method  = "local:/spam/spam-%m-%b-%i-%n";

The %x items in the *_quarantine_method settings are not true macros
in the README.customize sense, this would be too expensive.
These are just some ad-hoc replacements performed on these templates,
done by a simple perl s/// in sub mail_to_local_mailbox:

        $suggested_filename =~ s{%(.)}
          {  $1 eq 'b' ? $msginfo->body_digest
           : $1 eq 'm' ? $msginfo->mail_id
           : $1 eq 'i' ? iso8601_timestamp($msginfo->rx_time,1,'-')
           : $1 eq 'n' ? am_id()
           : $1 eq '%' ? '%' : '%'.$1 }egs;

Sorry for rising false expectations.

  Mark


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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/

Reply via email to