Andy Heath wrote:
>
>so how does "subject:.*[SPAM}.*" (admitredly meaning s or p etc) trigger 
>the behaviour but "subject.*spam" not trigger it ?

Because on the second and subsequent passes through it is looking at
the subject of the notice to the owner which contains 's', 'p', 'a'
and 'm' but not 'spam'. I.e. it is looking at

Subject: %(listname)s post from %(sender)s requires approval

with the appropriate substitutions for %(listname)s and %(sender)s.


>Also - where is this code normally ? I presume SpamDetect just
>calls the rules defined in the spam section, nothing
>cleverer.

The handler Mailman/Handlers/SpamDetect.py just implements
header_filter_rules and if there is a match and the action is Hold, it
calls the hold_for_approval() method in Mailman/Handlers/Hold.py to
actually hold the message and send the notice.


>And if I do decide to separate owners and
>moderators I may need to do the same trick for moderators -
>where is that code ? (sorry but with directories all over
>the place its horrible finding and grepping.) - presume
>there's a MODERATOR_PIPELINE or similar.


No. There's little if any difference between an owner and a moderator
except for which password(s) they know. There is no MODERATOR_PIPELINE
because there is no listname-moderator address. There is an ability
internally in mailman to send to owners, not including moderators, but
I think this is used only by bounce processing.

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

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to