Gordon Messmer wrote:

>I'd like to write a filter for the Courier MTA which will run mailman's 
>approval and spam tests before accepting messages to mailing lists.  My 
>filter framework is in python, so I think I can import the relevant bits 
>of mailman (I'd like to start with MM2.1 compatibility).  Can I get any 
>pointers to the functions that check the sender for approval, and for 
>the spam-specific posting filters?


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.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
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

Reply via email to