Sylvain Viart writes:

 > Development question, is there a way to test the handler against a mail 
 > content, outside of the full mailman context?

I forget the exact incantation, but I have a test list, and just test
for the test list at the top of the Handler, and return success
immediately.

 > Something like:
 > 
 > $ python -some-useful-switch-here MyHandler.py < mymail_withheader.txt

It's not going to be that easy because the handlers receive both the
message itself and a message information object, and creation of the
object is non-trivial.  For hints I'd look at the testing code.

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

Not as far as I'm concerned, "create a custom Handler" is commonly
offered as a solution here, so we should be willing to support it
here.

------------------------------------------------------
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