Change Listname Suffix Separator?

I have a mail provider that does not allow dashes in mailbox names. I have been forced to set up addresses of the form listname.request, etc. Since I am using fetchmail I can easily route those addresses to the normal mailboxes with the dashes. However, all the mailman messages and web addresses are wrong. I am guessing there is no easy way to fix that but what is the best way and what files are involved? TIA.

On 2/12/2013 6:48 AM, Dennis Putnam wrote:
I have a mail provider that does not allow dashes in mailbox names. I have been forced to set up addresses of the form listname.request, etc. Since I am using fetchmail I can easily route those addresses to the normal mailboxes with the dashes. However, all the mailman messages and web addresses are wrong. I am guessing there is no easy way to fix that but what is the best way and what files are involved? TIA.
It *think* there are only 3 modules that need changing to do this.
If you are using Mailman aliases on your Mailman server (the above seems to say you might be), there are two places in Mailman/MTA/Utils.py where you need to change '%s-%s' to '%s.%s' although you probably aren't using maildir delivery so only the one in the definition of _makealiases_mailprog really needs to be changed.
For the site list, in the definition of get_site_email in Mailman/Utils.py, change
return '%s-%s@%s' % (mm_cfg.MAILMAN_SITE_LIST, extra, hostname)
to
return '%s.%s@%s' % (mm_cfg.MAILMAN_SITE_LIST, extra, hostname)
For the rest, in the definition of getListAddress in Mailman/MailList.py, change
return '%s-%s@%s' % (self.internal_name(), extra, ...
to
return '%s.%s@%s' % (self.internal_name(), extra, ...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Dennis Putnam
-
Mark Sapiro