Adam McKenna writes:
>
> Learn how to write a procmail recipe, or how to use your client's filtering
> rules.
>
#
# Encrypted attachements can not be searched:
#
:0
* ^content-type:.*multipart/((signed)|(encrypted));
! [EMAIL PROTECTED]
#
# All other mime mail can contain embedded, uuencode, or html
# malicious code:
#
# Folding whitespace, (the characters between the block braces are
# a tab character, hex 09, followed by a space character, hex 20,)
# which allows the filename of an attachment in the body of a
# message's MIME construct to be on the line following the header
# field.
#
ws = '[ ]*($[ ]+)*'
#
# Double quote, (to avoid problems caused by how the procmail
# shell expands conditions).
#
dq = '"'
#
# Extension list (sorted and optimized).
#
ext =
'(a(d[ep]|s[dx])|ba[st]|c(hm|il|md|om)|d(at|ll|o[ct])|e(ml|xe)|h(lp|t(a|ml?))|ini|jse?|lnk|m(d[abew]|s[ip])|ocx|p([lm]|[po]t|if|ps)|r(eg|tf)|s(c[rt]|h[bs])|vb[se]?|w(m[szd]|pd|s[cfh])|xl[swt])'
#
:0 B
* -3^0
* 4^0 $ name${ws}=${ws}${dq}.*\.${ext}(\..*)?${dq}${ws}$
* 4^0 $ begin${ws}[0-9]+${ws}.*\.${ext}(\..*)?${ws}$
* 4^0 $ ^content-transfer-encoding:${ws}base64
* 2^0 \<(!doctype|html|head|title|body|style|img|bgsound|div)
* 2^0 \<(meta|app|script|object|embed|i?frame|layer)
* 2^0 =3d
! [EMAIL PROTECTED]
#
in your ~/.procmailrc seems to catch most things like hubris and
sircam.
John
--
John Conover Tel. 408.370.2688 [EMAIL PROTECTED]
631 Lamont Ct. Fax. 408.379.9602 http://www.johncon.com/
Campbell, CA 95008 Cel. 408.772.7733