SpamAssassin is dropping support for Mail::Audit. :-(
I think we will need to change the way we call SA from Mail::Audit scripts to something like the following UNTESTED code:
# Catch spam
my $spamtest = Mail::SpamAssassin->new( );
my $status = $spamtest->check($mail);
my $sa_mail_obj = $status->rewrite_mail ();
# Fix needed with SA 2.70
$mail = Mail::Audit->new( data => $sa_mail_obj->get_pristine() );
if( $status->is_spam() )
{
$mail->accept(MAIL_DIR.'Lists/JunkSpamAssassin');
}
updated 2004-02-04
The author of Mail::Audit stopped supporting it and released Email::Filter.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|