[Mailman-Users] Problems creating a list

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Thu Feb 11 00:14:30 CET 1999


Swamped for time, so just a quick response...

Mailman preserves case for the localpart of a subscriber's email
address for message posting purposes, however for all other purposes
the localpart is lowercased.

For listnames, I don't think you should ever have two lists whose name
differs only by case.  Forcing the listname to lowercase seems the
right approach.  Looking at bin/newlist, if the script prompts you for
the listname it already does lowercase it, but if you pass the
listname on the command line, it doesn't.  This seems like a bug
simply fixed by the following patch.

-Barry

Index: newlist
===================================================================
RCS file: /projects/cvsroot/mailman/bin/newlist,v
retrieving revision 1.22
diff -c -r1.22 newlist
*** newlist	1998/10/20 12:53:10	1.22
--- newlist	1999/02/10 23:13:25
***************
*** 25,30 ****
--- 25,32 ----
  immediately.  Otherwise, the script hangs pending input, to give time for
  the person creating the list to customize it before sending the admin an
  email notice about the existence of the new list.
+ 
+ Note that list-names are forced to lowercase.
  """
  
  import sys, os, string
***************
*** 52,58 ****
      if len(argv) > 1:
  	list_name = argv[1]
      else:
! 	list_name = string.lower(raw_input("Enter the name of the list: "))
  
      if '@' in list_name:
  	sys.stderr.write("** List name must not include '@': %s\n"
--- 54,61 ----
      if len(argv) > 1:
  	list_name = argv[1]
      else:
! 	list_name = raw_input("Enter the name of the list: ")
!     list_name = string.lower(list_name)
  
      if '@' in list_name:
  	sys.stderr.write("** List name must not include '@': %s\n"






More information about the Mailman-Users mailing list