diff options
| author | bwarsaw | 2002-03-12 07:33:01 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-03-12 07:33:01 +0000 |
| commit | f6ff16dcfc7a92dbb79e3caee1f2abadc1c00e93 (patch) | |
| tree | f5a668543920a4c0223b0a4009b52a190f62aa42 /Mailman/Bouncer.py | |
| parent | 500824207ef84539386d475f82b13abace284b3c (diff) | |
| download | mailman-f6ff16dcfc7a92dbb79e3caee1f2abadc1c00e93.tar.gz mailman-f6ff16dcfc7a92dbb79e3caee1f2abadc1c00e93.tar.zst mailman-f6ff16dcfc7a92dbb79e3caee1f2abadc1c00e93.zip | |
Diffstat (limited to 'Mailman/Bouncer.py')
| -rw-r--r-- | Mailman/Bouncer.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py index 2643c5fd6..fdf831ab5 100644 --- a/Mailman/Bouncer.py +++ b/Mailman/Bouncer.py @@ -78,6 +78,10 @@ class Bouncer: mm_cfg.DEFAULT_BOUNCE_YOU_ARE_DISABLED_WARNINGS_INTERVAL self.bounce_unrecognized_goes_to_list_owner = \ mm_cfg.DEFAULT_BOUNCE_UNRECOGNIZED_GOES_TO_LIST_OWNER + self.bounce_notify_owner_on_disable = \ + mm_cfg.DEFAULT_BOUNCE_NOTIFY_OWNER_ON_DISABLE + self.bounce_notify_owner_on_removal = \ + mm_cfg.DEFAULT_BOUNCE_NOTIFY_OWNER_ON_REMOVAL # Not configurable... # # This holds legacy member related information. It's keyed by the @@ -146,7 +150,8 @@ class Bouncer: info.score, self.bounce_score_threshold) self.setDeliveryStatus(member, MemberAdaptor.BYBOUNCE) self.sendNextNotification(member) - self.__sendAdminBounceNotice(member, msg) + if self.bounce_notify_owner_on_disable: + self.__sendAdminBounceNotice(member, msg) def __sendAdminBounceNotice(self, member, msg): # BAW: This is a bit kludgey, but we're not providing as much @@ -185,8 +190,10 @@ class Bouncer: return if info.noticesleft <= 0: # BAW: Remove them now, with a notification message - self.ApprovedDeleteMember(member, 'bouncing address', - admin_notif=1, userack=1) + self.ApprovedDeleteMember( + member, 'bouncing address', + admin_notif=self.bounce_notify_owner_on_removal, + userack=1) # Expunge the pending cookie for the user. We throw away the # returned data. Pending.confirm(info.cookie) |
