diff options
| author | bwarsaw | 2006-07-08 18:02:57 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-07-08 18:02:57 +0000 |
| commit | c6bd2024ebcb3982bb07c3fed1bb13d7ded332bd (patch) | |
| tree | f94e3945ec69c35be0bad5abeaa71df53b535351 /Mailman/MTA/Utils.py | |
| parent | f321ff8f419284c32f7eea4e06c83212bccef6b0 (diff) | |
| download | mailman-c6bd2024ebcb3982bb07c3fed1bb13d7ded332bd.tar.gz mailman-c6bd2024ebcb3982bb07c3fed1bb13d7ded332bd.tar.zst mailman-c6bd2024ebcb3982bb07c3fed1bb13d7ded332bd.zip | |
Diffstat (limited to 'Mailman/MTA/Utils.py')
| -rw-r--r-- | Mailman/MTA/Utils.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Mailman/MTA/Utils.py b/Mailman/MTA/Utils.py index ef3df0cb8..cc26fae11 100644 --- a/Mailman/MTA/Utils.py +++ b/Mailman/MTA/Utils.py @@ -35,7 +35,7 @@ def getusername(): -def _makealiases_mailprog(listname): +def _makealiases_mailprog(mlist): wrapper = os.path.join(config.WRAPPER_DIR, 'mailman') # Most of the list alias extensions are quite regular. I.e. if the # message is delivered to listname-foobar, it will be filtered to a @@ -47,18 +47,23 @@ def _makealiases_mailprog(listname): # need for the -admin address anymore). # # Seed this with the special cases. - aliases = [(listname, '"|%s post %s"' % (wrapper, listname)), - ] + listname = mlist.internal_name() + fqdn_listname = mlist.fqdn_listname + aliases = [ + (listname, '"|%s post %s"' % (wrapper, fqdn_listname)), + ] for ext in ('admin', 'bounces', 'confirm', 'join', 'leave', 'owner', 'request', 'subscribe', 'unsubscribe'): aliases.append(('%s-%s' % (listname, ext), - '"|%s %s %s"' % (wrapper, ext, listname))) + '"|%s %s %s"' % (wrapper, ext, fqdn_listname))) return aliases -def _makealiases_maildir(listname): +def _makealiases_maildir(mlist): maildir = config.MAILDIR_DIR + listname = mlist.internal_name() + fqdn_listname = mlist.fqdn_listname if not maildir.endswith('/'): maildir += '/' # Deliver everything using maildir style. This way there's no mail |
