Thanks for all this effort. I chose MailList.patch2.txt. Unfortunately I
did get errors:

patching file ./MailList.py
Hunk #1 FAILED at 75.
Hunk #2 FAILED at 190.
2 out of 2 hunks FAILED -- saving rejects to file ./MailList.py.rej

Note that there is no file ./MailList.py.rej. All I changed
(intentionally) was the 10 to a 13. I've attached the patch file just in
case I inadvertently messed something up.

Mark Sapiro wrote:
> You use one or the other, not both. You use MailList.patch.txt if you
> only want to substitute listreq for list-request. You use
> MailList.patch2.txt if you want to substitute lisdadm for list-admin,
> listbou for list-bounces, etc. for all nine of the suffixes.
>
> Step one - edit the patch file to replace the 10 in
>
> +MAGIC_LENGTH = 10
>
> with the actual list name length that makes things too long.
>
> Step two - make a backup of Mailman/MailList.py
>
> Step three -
>
> patch --dry-run /path/to/Mailman/MailList.py < /path/to/the/patch/file
>
> (see 'man patch' for more info)
>
> Depending on your Mailman version, you may see one or two "Hunk #n
> succeeded at offset..." messages from step 3. These are OK, but any
> other messages from step 3 after the "patching file ..." message may
> indicate a problem, so stop and post the error(s)
>
> Step four - If no errors at step 3
>
> patch /path/to/Mailman/MailList.py < /path/to/the/patch/file
>
> Step 5 - restart Mailman.
>
>   

--- c:/test-mailman-2.2/Mailman/MailList.py     2008-08-22 15:48:58.500000000 
-0700
+++ c:/test-mailman/Mailman/MailList.py 2008-11-02 21:49:50.447344300 -0800
@@ -75,6 +75,8 @@
 
 EMPTYSTRING = ''
 OR = '|'
+# The magic listname length beyond which list-request becomes listreq
+MAGIC_LENGTH = 13
 
 try:
     True, False
@@ -188,6 +190,8 @@
     def getListAddress(self, extra=None):
         if extra is None:
             return '[EMAIL PROTECTED]' % (self.internal_name(), self.host_name)
+        if len(self.internal_name()) > MAGIC_LENGTH:
+            return '[EMAIL PROTECTED]' % (self.internal_name(), 
extra[:3],self.host_name)
         return '[EMAIL PROTECTED]' % (self.internal_name(), 
extra,self.host_name)
 
     # For backwards compatibility
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9

Reply via email to