Re: [Mailman-Users] Administrivia Checks

2007-07-17 Thread Mark Sapiro
Barry Finkel wrote:

I am converting most of our Majordomo lists to Mailman.  After I
converted one list, the list administrator sent the command

 who LISTNAME

to the converted list.  It was not caught as administrivia.  In the
2.1.9 source Utils.py, I see 

ADMINDATA = {
# admin keyword: (minimum #args, maximum #args)
...
'who': (0, 0),

Is there a reason why the max #args for who is not set to 1 or 2 to
catch these commands?

 who password listname
 who listname
 who listname address=address


Actually, none of the above are valid Mailman email commands. Commands
are sent to listname-request, so listname is never part of the
command. However,

  who password
  who password address=address

are valid commands with 1 and 2 arguments. This was changed in 2002
when the individual command modules were added. Prior to this, the
only valid command was

  who

I suspect it was an oversight to not update the Utils.ADMINDATA
dictionary at that time, but I don't know. The following may have had
something to do with it, but I think on balance, catching

  who xxx yyy

as administrivia is the right thing to do. I'm going to change it.


Is it because the revised code would catch this (and similar) lines:

 Who is it?


-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter 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=showamp;file=faq01.027.htp


[Mailman-Users] Administrivia Checks

2007-07-16 Thread Barry Finkel
I am converting most of our Majordomo lists to Mailman.  After I
converted one list, the list administrator sent the command

 who LISTNAME

to the converted list.  It was not caught as administrivia.  In the
2.1.9 source Utils.py, I see 

ADMINDATA = {
# admin keyword: (minimum #args, maximum #args)
...
'who': (0, 0),

Is there a reason why the max #args for who is not set to 1 or 2 to
catch these commands?

 who password listname
 who listname
 who listname address=address

Is it because the revised code would catch this (and similar) lines:

 Who is it?

Thanks.
--
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory  Phone:+1 (630) 252-7277
9700 South Cass Avenue   Facsimile:+1 (630) 252-4601
Building 222, Room D209  Internet: [EMAIL PROTECTED]
Argonne, IL   60439-4828 IBMMAIL:  I1004994

--
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=showamp;file=faq01.027.htp