|
From: Evan F. <EF...@di...> - 2004-04-14 20:05:16
|
Ok, I've figured out that basically what I need to do is create a token that
can be inserted into my log template. I can use the %A token, but it's the
big ugly SA report.
A => sub {[split(/\r?\n/, $spam_report)]}, # SpamAssassin report
lines
So, I want to create something like...
U => sub {$sa_tests}
But I get errors telling me that the global symbol $sa_tests "requires
explicit package name". My guess is that somehow the variable isn't defined.
But here I'm getting in a little over my head with Perl - I can't really see
what $spam_report has defined that allows it to be inserted as a token that
$sa_tests doesn't...
Any help? I understand that I need to use "sub" because the variable won't
be set up till later... but as I say, I'm a bit out of my depth.
Thanks!
Evan
-----Original Message-----
From: Evan Falk [mailto:EF...@di...]
Sent: Wednesday, April 14, 2004 9:28 AM
To: 'ama...@li...'
Subject: [AMaViS-user] logging rule hits for non-spam
Hi all,
Here's a possibly dumb question, but I couldn't find the answer in the
documentation...
I don't maintain a corpus of e-mail, but when I'm playing with new
spamassassin rules I would like to be able to see every time it hits (not
just the spam) in my maillog. Is there any way to set up amavisd-new to do
this?
For instance, I want to get some stats on the Spamhaus XBL blacklist so I
can make a case for moving it up to the MTA level. I can tell you right off
that out of X number of spam messages it hits Y number of times. But how
many times does it hit on non-spam messages? This would be useful info, but
without a corpus I need to test in real-time and check the logs. Any ideas?
Is this, as I suspect, an amavis configuration question, or is it one of
those things that should be done in Spamassassin?
Thanks!
Evan
|