From 4c54a401f9070bcb385a44bbaec8c08facb10ee4 Mon Sep 17 00:00:00 2001 From: Jim Popovitch Date: Tue, 12 Jun 2018 02:05:08 +0000 Subject: Add whence to owner subscribe|unsubscribe notifications. --- Mailman/MailList.py | 2 ++ templates/en/adminsubscribeack.txt | 2 +- templates/en/adminunsubscribeack.txt | 2 +- 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. -- cgit v1.2.3