El lun., 25 mar. 2019 a las 9:44, Kris Deugau (<kdeu...@vianet.ca>) escribió:

> That looks to be far too complicated for most purposes, and reading back
> and forth I don't think it's even intended for the standard spamd
> logging;  it's looking at log traces from some other SA library caller
> entirely.  Can you post a couple of example log entries you're expecting
> this to match and extract fields from?

https://pastebin.com/nsJ4PUBM

>
> I would just do:
>
> grep 'Mar 24' /var/log/maillog |grep 'result: Y'
>
> Note that this would not return "messages scored 5 or more", just
> "messages flagged as spam", which would depend on your required_score
> setting in SA.

I have tried but it does not show any output

>
> The scan result line should contain all the detail you need to do
> further lookups.  You don't say what you want to do with these log entries.
>

the idea is to be able to take out the messages that yesterday and
today were marked as spam, when the score is equal to or greater than
5

> For anything much more complicated I'd write a short Perl script to do
> more complex pattern matching and data extraction, as well as any
> summary reporting I'm looking for.
>
> -kgd

ok, I'm not an expert in bash or perl, but it would be nice to be able
to see or extract a report of the email addresses with the date that
were marked as spam with a score equal to 5 or greater than 5 , the
from:, to:,

Thanks for the help,
-- 
rickygm

http://gnuforever.homelinux.com

Reply via email to