[Mailman-Developers] pre-filter for mailman

Mark Sapiro mark at msapiro.net
Thu Jul 2 04:13:45 CEST 2009


Ulli Horlacher wrote:
>
>Since mailman is missing some important (for me) features and I do not
>know python I have written a pre-filter in perl.
>
>The features are:
>
>- the admin can defines a config files
>	: a list of allowed MIME types
>        : weed = commercial ads footer 
>
>- the mail is disassembled in its MIME parts, only allowed TEXT parts get
>  in the reassembled mail, not allowed MIME types are substituted with a
>  message "part XXX (MIME-type YYY) is not allowed, ignored", allowed
>  MIME types are saved on the web server and substituted with a message
>  "part XXX is saved at URL YYY"


Mailman's content filtering together with scrub_nondigest does
something similar.


>- missing References header are added


Constructed from what?


>- bad quoting (by wrong auto-wrapping of editor) is corrected
>
>- overlong lines are reformated 
>
>- non-RFC Subject prefixes like "AW:" are substituted with correct "Re:"
>
>- commercial ads are deleted
>
>- full quoting at end of mail is removed


I am interested in how you do these, particularly the last two. Can I
see your code?

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Developers mailing list