Mark Sapiro wrote: > Everything is done by the handler modules in Mailman/Handlers. > IncomingRunner processes the message by calling the process() function > of each module in the GLOBAL_PIPELINE list in turn until the pipeline > is exhausted or a handler raises an exception. > > See the definition of GLOBAL_PIPELINE in Defaults.py and the > SpamDetect.py, Approve.py, Moderate.py and Hold.py handlers in > particular. >
Thanks. I got a chance to look at this today. Since I only need an indication of whether or not the message will be rejected by mailman, I believe that I can use SpamDetect and Approve directly. However, I'd need to make sure that messages aren't held as a result of the examination. I'm not sure yet whether it'll be less ugly to make a work-alike function from Moderate.process(), leaving out the Hold bits, or perhaps import Moderate, and then replace Hold therein with one that does nothing. Any thoughts before I start? _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
