[Mailman-Developers] pre-filter for mailman

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Jul 1 08:50:43 CEST 2009


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"

- missing References header are added

- 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




-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/


More information about the Mailman-Developers mailing list