diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-13 17:22:47 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-06-13 17:22:47 +0900 |
commit | f9ad5c209b47c5b4677f5f6678667049ceea9baf (patch) | |
tree | 07359919522b45c79abe1648fb8e6b995cb7cc7a /Mailman/MailList.py | |
parent | f4212b4845d8f5d1e3bb1cd5271f49e4641a3051 (diff) | |
parent | d4bf95bd97ebaeebb5291c4f7d9f1d90ff7414fd (diff) | |
download | mailman2-f9ad5c209b47c5b4677f5f6678667049ceea9baf.tar.gz mailman2-f9ad5c209b47c5b4677f5f6678667049ceea9baf.tar.xz mailman2-f9ad5c209b47c5b4677f5f6678667049ceea9baf.zip |
merge lp:mailman/2.1 up to rev 1770
Diffstat (limited to 'Mailman/MailList.py')
-rwxr-xr-x | Mailman/MailList.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index fdc3802a..cc1be3b5 100755 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -915,6 +915,12 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, syslog('vette', '%s banned subscription: %s%s (Spamhaus IP)', realname, email, whence) raise Errors.MembershipIsBanned, 'Spamhaus IP' + # See if this is from a spamhaus listed domain. + if email and mm_cfg.BLOCK_SPAMHAUS_LISTED_DBL_SUBSCRIBE: + if Utils.banned_domain(email): + syslog('vette', '%s banned subscription: %s (Spamhaus DBL)', + realname, email) + raise Errors.MembershipIsBanned, 'Spamhaus DBL' # Sanity check the digest flag if digest and not self.digestable: raise Errors.MMCantDigestError @@ -1069,6 +1075,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, "adminsubscribeack.txt", {"listname" : realname, "member" : formataddr((name, email)), + "whence" : "" if whence is None else "(" + whence + ")" }, mlist=self) msg = Message.OwnerNotification(self, subject, text) msg.send(self) @@ -1105,6 +1112,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, 'adminunsubscribeack.txt', {'member' : name, 'listname': self.real_name, + "whence" : "" if whence is None else "(" + whence + ")" }, mlist=self) msg = Message.OwnerNotification(self, subject, text) msg.send(self) |