Re: [AMaViS-user] Quarantine and MTA feedback

This is a discussion on Re: [AMaViS-user] Quarantine and MTA feedback within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Hans, > >> $spam_quarantine_method = 'local:spam/%m.gz'; > >> $virus_quarantine_method = 'local:virus/%m'; > OK, there's ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-08-2005
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Quarantine and MTA feedback

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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0