summaryrefslogtreecommitdiff
path: root/Mailman/MTA/Manual.py
diff options
context:
space:
mode:
authorbwarsaw2002-02-28 22:21:57 +0000
committerbwarsaw2002-02-28 22:21:57 +0000
commita1bd536541949b48a20262a6c0b9df4455496b24 (patch)
treed23256a44c9505946d1bad87fd91e056e3207843 /Mailman/MTA/Manual.py
parent0d8c5db06ce942f2e9488435d93592e9d5e010e9 (diff)
downloadmailman-a1bd536541949b48a20262a6c0b9df4455496b24.tar.gz
mailman-a1bd536541949b48a20262a6c0b9df4455496b24.tar.zst
mailman-a1bd536541949b48a20262a6c0b9df4455496b24.zip
Diffstat (limited to 'Mailman/MTA/Manual.py')
-rw-r--r--Mailman/MTA/Manual.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/Mailman/MTA/Manual.py b/Mailman/MTA/Manual.py
index 47022d0eb..d2b946029 100644
--- a/Mailman/MTA/Manual.py
+++ b/Mailman/MTA/Manual.py
@@ -46,7 +46,7 @@ def clear():
# nolock argument is ignored, but exists for interface compliance
def create(mlist, cgi=0, nolock=0):
listname = mlist.internal_name()
- fieldsz = len(listname) + len('-request')
+ fieldsz = len(listname) + len('-unsubscribe')
if cgi:
# If a list is being created via the CGI, the best we can do is send
# an email message to mailman-owner requesting that the proper aliases
@@ -77,11 +77,14 @@ equivalent) file by adding the following lines, and possibly running the
if not cgi:
print >> outfp
return
- siteowner = Utils.get_site_email()
+ # Send the message to the site -owner so someone can do something about
+ # this request.
+ siteowner = Utils.get_site_email(extra='owner')
+ # Should this be sent in the site list's preferred language?
msg = Message.UserNotification(
siteowner, siteowner,
_('Mailing list creation request for list %(listname)s'),
- sfp.getvalue(), mlist.preferred_language)
+ sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
outq = get_switchboard(mm_cfg.OUTQUEUE_DIR)
outq.enqueue(msg, recips=[siteowner])
@@ -89,7 +92,7 @@ equivalent) file by adding the following lines, and possibly running the
def remove(mlist, cgi=0):
listname = mlist.internal_name()
- fieldsz = len(listname) + len('-request')
+ fieldsz = len(listname) + len('-unsubscribe')
if cgi:
# If a list is being removed via the CGI, the best we can do is send
# an email message to mailman-owner requesting that the appropriate
@@ -120,10 +123,11 @@ equivalent) file by removing the following lines, and possibly running the
if not cgi:
print >> outfp
return
- siteowner = Utils.get_site_email()
+ siteowner = Utils.get_site_email(extra='owner')
+ # Should this be sent in the site list's preferred language?
msg = Message.UserNotification(
siteowner, siteowner,
_('Mailing list removal request for list %(listname)s'),
- sfp.getvalue())
+ sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
outq = get_switchboard(mm_cfg.OUTQUEUE_DIR)
outq.enqueue(msg, recips=[siteowner])