On Wed, Jun 14, 2000 at 02:11:38PM -0700, Andrew Edelstein wrote:
On Wed, Jun 14, 2000 at 07:30:57PM +0100, John Poltorak wrote:
Just wondered if it's possible to extract two lines such as
Subject and X-Mailer... I tried but didn't find a way of
doing it.
formail -XSubject: -XX-mailer: -s < mailbox
OK. Now that I can do this, I'm wondering if I can put some
intelligence into it...
ie. is it possible to output these two lines depending on the value
of one of them?
What I'm trying to do is produce a list containing the From and Received:
lines where the Subject: contains high ASCII characters. To me, the
presence of high ASCII characters is a good indication of Chinese spam.
The aim is to identify the domains sending this spam and subsequently
block them via Sendmail using the SpamDomain filter file.
--
Andrew Edelstein http://andrew.pure-chaos.com
"This... is grain, which any fool can eat, but the Lord intended a higher
purpose. Let us give praise to his glory and thanks to his wonderful bounty,
as we learn about... BEER!"
--
John
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail