[Mailman-Users] Approval of messages

Barry Warsaw barry at python.org
Wed Apr 9 06:39:39 CEST 2003


On Tue, 2003-04-08 at 11:35, Todd wrote:

> I don't know all the rules of how the filter works, but using a subject like
> "Who is here?" won't trip the filter, but "who" will.

It's fairly well hidden, and in fact this is some dinosaur-old code. 
For the Pythonically inclined, search Mailman/Utils.py for the
is_administrivia() function.  Above that is a dictionary of email
commands to 2-tuples of the form (min #args, max #args).  The tuple
specifies the minimum and maximum number of arguments to the command
that must be present for it to be recognized as a command.

The "who" command has a min and max of 0, so a bare "who" in the Subject
will definitely trip it.

-Barry





More information about the Mailman-Users mailing list