procmail
[Top] [All Lists]

Re: Filtering on the cc line size

1996-04-09 09:10:48
-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 9 Apr 1996, Wotan wrote:

Date: Tue, 9 Apr 1996 10:00:41 -0500 (EST)
From: Wotan <wotan(_at_)netcom(_dot_)com>
To: procmail mailing list 
<procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de>
Subject: Filtering on the cc line size

The recent batch of e-mail spammers seem to be fascinated with the cc line.

Is there a way to test the cc line and filter out mail if the line has an 
unreasonable number of characters in it?  

Try this (untested):

# Make CCLEN contain the number of chars in the Cc: line
CCLEN=|formail -X 'Cc:' | wc -c

# Throw it away if this is more than 200 characters.
:0
* ? test $CCLEN > 200
/dev/null


Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D. 
student at ELIS -- TFCG / IMEC 
Atypical civil engineer -- And proud of it!
(Please check out http://www.elis.rug.ac.be/ieeesb/civil.html)
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html 
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: pgp fingerprints in message headers

iQBVAwUBMWqKkXwHoCha5QR1AQHIngIAnAAq4oEhcGXSZNXsIVuFjthZwwWKLe2g
YP6jKOTRUemUCKBhcEUD0U2p7EUwBksvA3VLbjJLaOY7naDAa02Q4g==
=pzg/
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>