Clueless hacker wrote:
> > Is there any way to get this _RELAYSUNTRUSTED_ data into the
> > Mail::SpamAssassin object somehow? Then I think I could
> hack amavisd-new to
> > log this relay information.
jm wrote:
> Hmm -- I suppose you could do
>
> my $untrusted = $per_msg_status->_get_tag ("_RELAYSUNTRUSTED_");
>
> to get that -- but it's currently not officially unsupported ;)
"Not officially unsupported"... that must mean it's officially supported...
WHOOO!! ;-P
Alas, this function doesn't seem to be returning anything for me. This is
the code I did in amavisd. The last 3 lines are the ones I added to the
spam_scan($$) function within amavisd:
$spam_level = $per_msg_status->get_hits;
$sa_required = $per_msg_status->get_required_hits; # not used
$sa_tests = $per_msg_status->get_names_of_tests_hit;
$spam_report = $per_msg_status->get_report;
# Attempt to log untrusted relays
my $untrusted = $per_msg_status->_get_tag ("_RELAYSUNTRUSTED_");
do_log(1, "SPAM LEVEL=$spam_level, RELAYS=$untrusted");
Unfortunately, the $untrusted variable always seems to be blank. This is
what I see in the logs:
Oct 23 11:34:07 spaminator amavis[8968]: (08968-10) SPAM LEVEL=-2.897,
RELAYS=
Oct 23 11:34:08 spaminator amavis[9325]: (09325-02) SPAM LEVEL=-3.297,
RELAYS=
Oct 23 11:34:09 spaminator amavis[9330]: (09330-01) SPAM LEVEL=-3.564,
RELAYS=
Oct 23 11:34:10 spaminator amavis[9325]: (09325-03) SPAM LEVEL=8.195,
RELAYS=
So obviously the ->get_hits and such work fine, but the ->_get_tag function
doesn't like me. I also tried other tags, such as _REPORT_ and _DATE_...
nothing ever seems to get logged. Hopes... dashed.... =(
Any ideas?
thanks!!!
johnS
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk