Re: [Mailman-Users] new to mime filters

2005-05-01 Thread Mark Sapiro
Jarrel Pertschuk wrote:
Hey there trying to learn how to filter attachments with a list of 
extensions. I'd like to write a filter that will scan for all items like 
.exe, .dll  and a long list of things of that sort and delete them. Not 
sure how to do this. Can anyone help with this basic question?
Mailman 2.1.6 header filter rules extend to mime subparts. Thus you can 
use these rules to delete/hold/reject entire posts based on regexp 
matches on the file name of attachments. You can't just strip the 
attachment this way though. That can only be done by mime content-type 
through the standard content filtering settings.

There is a post from Tokio Kikuchi in this list's archives about this, 
but I'm currently on a ship where internet connectivity costs 
$0.35/minute, so I leave it to you to find it.

--
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
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
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] new to mime filters

2005-04-30 Thread Brad Knowles
At 3:53 PM -0700 2005-04-29, Jarrel Pertschuk wrote:
 Hey there trying to learn how to filter attachments with a list of
 extensions. I'd like to write a filter that will scan for all items
 like .exe, .dll  and a long list of things of that sort and delete
 them. Not sure how to do this. Can anyone help with this basic question?
	The problem is that these sorts of things could be presented in 
any number of ways, and may or may not correspond to given MIME 
bodypart types, etc  You're better off selecting the things that 
you know to be safe and allowing them through and then rejecting or 
stripping everything else.

	That's easily done by going into the Content Filtering page of 
the web admin interface for your mailing list, turning on the radio 
button at the top of that page (with the description Should Mailman 
filter the content of list traffic according  to the settings 
below?), and then making sure that the first multi-line field is 
empty, and the second multi-line field has the MIME bodypart types 
you know to be safe.

--
Brad Knowles, [EMAIL PROTECTED]
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See http://www.sage.org/ for more info.
--
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
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp