[Mailman-Developers] patch to add a DEFAULT_UCFIRST_REAL_NAME option

Nathan Neulinger nneul at umr.edu
Thu Mar 13 10:29:14 EST 2003


This patch adds a DEFAULT_UCFIRST_REAL_NAME option, defaulting to 1,
which allows site admin to request that new lists all be created with
the list name being all lowercase by default, instead of the mixed case
name.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul at umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216
-------------- next part --------------
Index: Mailman/Defaults.py.in
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Defaults.py.in,v
retrieving revision 2.115
diff -u -r2.115 Defaults.py.in
--- Mailman/Defaults.py.in	13 Mar 2003 05:46:56 -0000	2.115
+++ Mailman/Defaults.py.in	13 Mar 2003 16:27:41 -0000
@@ -767,6 +767,10 @@
 DEFAULT_MAX_NUM_RECIPIENTS = 10
 DEFAULT_MAX_MESSAGE_SIZE = 40           # KB
 
+# Should lists be created by default as 'Listname' or as 'listname'. Set to
+# 0 to create list name in all lowercase.
+DEFAULT_UCFIRST_REAL_NAME = 1
+
 # These format strings will be expanded w.r.t. the dictionary for the
 # mailing list instance.
 DEFAULT_SUBJECT_PREFIX  = "[%(real_name)s] "
Index: Mailman/MailList.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/MailList.py,v
retrieving revision 2.104
diff -u -r2.104 MailList.py
--- Mailman/MailList.py	24 Feb 2003 15:37:57 -0000	2.104
+++ Mailman/MailList.py	13 Mar 2003 16:27:41 -0000
@@ -307,7 +308,10 @@
                 mm_cfg.DEFAULT_BOUNCE_MATCHING_HEADERS
         self.anonymous_list = mm_cfg.DEFAULT_ANONYMOUS_LIST
         internalname = self.internal_name()
-        self.real_name = internalname[0].upper() + internalname[1:]
+        if mm_cfg.DEFAULT_UCFIRST_REAL_NAME:
+            self.real_name = internalname[0].upper() + internalname[1:]
+        else:
+            self.real_name = internalname
         self.description = ''
         self.info = ''
         self.welcome_msg = ''


More information about the Mailman-Developers mailing list