[Mailman-Users] Additional Features ??

Steven Champeon schampeo at hesketh.com
Sat Nov 13 01:59:55 CET 1999


On Fri, 12 Nov 1999, AE wrote:
> A second message received today was to ask if there was a way to block any 
> message that contains an attachment.  The best thing I could tell him, was 
> to set the "Maximum length in Kb of a message body. Use 0 for no limit." 
> back to 40 and hope that the attachment is larger than 40K.  This is 
> ovbiously not a great solution.

Oh, this one is easy. Mailman lets you block based on the headers. Go to
the admin interface, and select "privacy options". In the "hold posts"
textarea, add the following regexes:

Content-type:.*multipart\/alternative.*
Content-type:.*multipart\/mixed.*
.*text\/html.*
.*text\/enriched.*
.*text\/x-vcard.*
Content-Disposition:.*attachment.*

That ought to grab most of them.

HTH,
Steve

-- 
business: http://hesketh.com ...custom medium- to large-scale web sites
the book: http://dhtml-guis.com  ...Building Dynamic HTML GUIs from IDG
punditry: http://a.jaundicedeye.com       ...negative forces have value
personal: http://hesketh.com/schampeo/  ...info, projects, random stuff






More information about the Mailman-Users mailing list