[Mailman-Users] handler to auto detach attachment and link it to a website?

Mark Sapiro mark at msapiro.net
Fri Mar 28 16:58:45 CET 2014

On 03/27/2014 11:31 PM, Sylvain Viart wrote:
> Le 26/03/2014 20:32, Mark Sapiro a écrit :
>> How about just setting the list's web admin Non-digest options ->
>> scrub_nondigest to Yes.
> I've also found this option here, I didn't notice it before.
> Any attachments larger than that size, I'd like to be scrubbed and a
> link url inserted
> <https://mail.python.org/pipermail/mailman-users/2010-July/069955.html>

As it says in that post, scrub_nondigest is an all or nothing feature.
There is no current mechanism for scrubbing only those attachments
greater than a given size.

> 4.82 How do I filter or scrub content before checking if a message is
> "too big"? <http://wiki.list.org/pages/viewpage.action?pageId=7602227>
> Is it related to archiving only, or does it perform what I've described?

That FAQ is about applying content filtering and/or scrubbing before
testing the message for a "too big" hold. It does nothing about only
scrubbing attachments over some size.

> I didn't know that word 'scrub', it's used in the meaning of deep
> washing, right?

Essentially, yes.

> I must specify, is that the web server hosting the detached part of the
> message, will probably be a different server that the one hosting the
> mailman.

The scrubber stores attachments in the list's archive which is normally
on the Mailman server. If you want them stored elsewhere, you should
probably look at a custom handler to do the scrubbing and also to only
scrub attachments over some size.

> I may start to look at the code of Mailman/Handlers/Scrubber.py, right?


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-Users mailing list