diff options
author | Jim Popovitch <jimpop@domainmail.org> | 2018-06-06 10:06:19 +0000 |
---|---|---|
committer | Jim Popovitch <jimpop@domainmail.org> | 2018-06-06 10:06:19 +0000 |
commit | cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf (patch) | |
tree | 11a9319cdd23a725293e77d7f7bbfe1712fe53e5 /Mailman/MailList.py | |
parent | 8291c814c54d87c7958304e471a5c5c013417e45 (diff) | |
download | mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.tar.gz mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.tar.xz mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.zip |
Improved logging of security related events
Diffstat (limited to '')
-rwxr-xr-x | Mailman/MailList.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index fdc3802a..7b096bb1 100755 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1070,6 +1070,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, {"listname" : realname, "member" : formataddr((name, email)), }, mlist=self) + if whence: + text = "%s\nReason: %s" % (text, whence) msg = Message.OwnerNotification(self, subject, text) msg.send(self) @@ -1106,6 +1108,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, {'member' : name, 'listname': self.real_name, }, mlist=self) + if whence: + text = "%s\nReason: %s" % (text, whence) msg = Message.OwnerNotification(self, subject, text) msg.send(self) if whence: |