[Mailman-Users] Improved processing of Approve(d): lines - was: Announcement List

Mark Sapiro msapiro at value.net
Sun Jun 10 03:25:24 CEST 2007


Mark Sapiro wrote:
>
>If you post with an Approved: line as the first non-blank line in the
>first text/plain part of the message, it will be removed from that
>part and an attempt will be made to remove it from other text/* parts
>of the message (e.g. from the text/html alternative of a
>multipart/alternative message). This attempt does not always succeed.
>In particular, if the poster's MUA creates a multipart/alternative
>message and because of additional <font> or whatever tags, the
>Approved: <password> gets split across lines in the raw HTML, it won't
>be removed.

I have implemented an enhancement to the module
(Mailman/Handlers/Approve.py) that looks for and removes Approve(d):
lines. The enhancement should resolve the failed attempts at removal.
The new code has been checked in to SVN and will be in the next
release of Mailman.

If you need this funcionality, the module can be obtained at
<http://mailman.svn.sourceforge.net/viewvc/*checkout*/mailman/branches/Release_2_1-maint/mailman/Mailman/Handlers/Approve.py?revision=8232>.
This module should work in any Mailman 2.1.x version.

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



More information about the Mailman-Users mailing list