Hi,
Mark Sapiro wrote:
Lars Bungum wrote:
On Sat, 2005-02-05 at 18:38, Mark Sapiro wrote:
How about adding the content-types to the spam-option? I tried doing this now, like:
Content-Type: application/octet-stream; name="details.exe"
as the spamfilter regexp. Would that work?
No, it won't work because the header_filter_rules are only applied to the message headers. They are not checked against the sub-part headers for MIME sub-parts. Thus the only header you could match against would be something like
It will work if you upgrade your mailman to 2.1.6b3! Here is a excerpt from the detail to header_filter_rules (privacy):
Note that headers are collected from all the attachments (except for the mailman administrivia message) and matched against the regular expressions. With this feature, you can effectively sort out messages with dangerous file types or file name extensions.
content-.*name=.*\.exe
will do the work.
-- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org