-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stewart, John writes:
> 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

er.... oops ;)

> 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:

my bad. try

              my $untrusted = $per_msg_status->_get_tag ("RELAYSUNTRUSTED");

no _'s.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Exmh CVS

iD8DBQE/mAojQTcbUG5Y7woRAv2iAKC5ZuzYo1RQKdWSU2I7ztmY3Q6FEwCgrxgZ
00dytzPq+sbCM9y1ud9Ciqc=
=R37G
-----END PGP SIGNATURE-----



-------------------------------------------------------
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

Reply via email to