Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2015 07:18:53 +0700
From:      Olivier Nicole <olivier.nicole@cs.ait.ac.th>
To:        "Lt. Commander" <us.navy@outlook.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>,  "sageame@sageweb.net" <sageame@sageweb.net>
Subject:   Re: Script question
Message-ID:  <CA%2Bg%2BBvjNv0PBOfmnWkzE26Tgqj6qZ-VKbHXMpuB8gak69G_T2g@mail.gmail.com>
In-Reply-To: <BAY182-W89C2924F4BDF0D2BD3810DF4BB0@phx.gbl>

index | next in thread | previous in thread | raw e-mail

Jason,

> I would like to be able to scan the daily maillog with a script at midnight to extract a list by selecting spam recognized and contained using the constant "score=(greater than x) and from that a list of just the IPs which will be placed in a spam file as part of a spam system here. Am tired of some getting past spamass even though it exceeds a reasonable tag level.
>
> I do know how to extract just the IP from a line in the log, but not sure what the syntax should be to first ID the "score=<x" in a simple sh shell script.

What would be the typical lines from the log?

I;d use Perl rather than sh.

Olivier


>
> I hope this has been presented clear enough to gather some help on this task.
>
> Thanks,
> Jason
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bg%2BBvjNv0PBOfmnWkzE26Tgqj6qZ-VKbHXMpuB8gak69G_T2g>