aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Popovitch <jimpop@domainmail.org>2018-06-12 02:05:08 +0000
committerJim Popovitch <jimpop@domainmail.org>2018-06-12 02:05:08 +0000
commit4c54a401f9070bcb385a44bbaec8c08facb10ee4 (patch)
tree587d89dab3a56a02cd4e329d7799d0f925656eb3
parentd363c183a208a1ef34847656533cb818d7a7cf50 (diff)
downloadmailman2-4c54a401f9070bcb385a44bbaec8c08facb10ee4.tar.gz
mailman2-4c54a401f9070bcb385a44bbaec8c08facb10ee4.tar.xz
mailman2-4c54a401f9070bcb385a44bbaec8c08facb10ee4.zip
Add whence to owner subscribe|unsubscribe notifications.
Diffstat (limited to '')
-rwxr-xr-xMailman/MailList.py2
-rw-r--r--templates/en/adminsubscribeack.txt2
-rw-r--r--templates/en/adminunsubscribeack.txt2
3 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index fdc3802a..1755ae64 100755
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1069,6 +1069,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
"adminsubscribeack.txt",
{"listname" : realname,
"member" : formataddr((name, email)),
+ "whence" : "" if whence == None else " (" + whence + ")"
}, mlist=self)
msg = Message.OwnerNotification(self, subject, text)
msg.send(self)
@@ -1105,6 +1106,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
'adminunsubscribeack.txt',
{'member' : name,
'listname': self.real_name,
+ "whence" : "" if whence == None else " (" + whence + ")"
}, mlist=self)
msg = Message.OwnerNotification(self, subject, text)
msg.send(self)
diff --git a/templates/en/adminsubscribeack.txt b/templates/en/adminsubscribeack.txt
index 388a3a24..f5d94e36 100644
--- a/templates/en/adminsubscribeack.txt
+++ b/templates/en/adminsubscribeack.txt
@@ -1,3 +1,3 @@
-%(member)s has been successfully subscribed to %(listname)s.
+%(member)s has been successfully subscribed to %(listname)s%(whence)s.
diff --git a/templates/en/adminunsubscribeack.txt b/templates/en/adminunsubscribeack.txt
index 2ebcfeb7..5b30f805 100644
--- a/templates/en/adminunsubscribeack.txt
+++ b/templates/en/adminunsubscribeack.txt
@@ -1,2 +1,2 @@
-%(member)s has been removed from %(listname)s.
+%(member)s has been removed from %(listname)s%(whence)s.