On 04/11/2014 08:54 AM, Sylvain Viart wrote:
> 
> 4.67. How do I implement a custom handler in Mailman
> <http://wiki.list.org/pages/viewpage.action?pageId=4030615>
> 
> 
> Following instruction here, I've started to develop my custom handler,
> as Scrubber is scrubbing too "strong" for my purpose.
> 
> Development question, is there a way to test the handler against a mail
> content, outside of the full mailman context?
> 
> Something like:
> 
> $ python -some-useful-switch-here MyHandler.py < mymail_withheader.txt


withlist is the tool for this. When I get a chance, I will update the
above FAQ with a skeleton framework, but in short you need a withlist
script that imports your handler, reads your message and builds a
Mailman.Message.Message object and calls your handler's process function.


> Is it more appropriate to post such question to mailman-developers list?


Either is OK.


> I've found: http://pythonhosted.org/mailman/src/mailman/docs/DEVELOP.html


That's for Mailman 3 and isn't relevant to Mailman 2.1.x.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to