diff options
| author | bwarsaw | 2001-12-27 06:53:20 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-12-27 06:53:20 +0000 |
| commit | b4a695842a60f63b489f23cbfae30840f18a8fbf (patch) | |
| tree | abe8dbce9083e27699fd88347a068d14fd534240 | |
| parent | 3d7db3cab742d8f8248dd44d90f55f451793c81b (diff) | |
| download | mailman-b4a695842a60f63b489f23cbfae30840f18a8fbf.tar.gz mailman-b4a695842a60f63b489f23cbfae30840f18a8fbf.tar.zst mailman-b4a695842a60f63b489f23cbfae30840f18a8fbf.zip | |
| -rw-r--r-- | Mailman/HTMLFormatter.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index af960bb1f..b048c3dcf 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -130,6 +130,7 @@ class HTMLFormatter: def FormatDisabledNotice(self, user): status = self.getDeliveryStatus(user) reason = None + info = self.getBounceInfo(user) if status == MemberAdaptor.BYUSER: reason = _('; it was disabled by you') elif status == MemberAdaptor.BYADMIN: @@ -152,6 +153,17 @@ class HTMLFormatter: address. In either case, to re-enable delivery, change the %(link)s option below. Contact %(mailto)s if you have any questions or need assistance.''') + elif info and info.score > 0: + # Provide information about their current bounce score. We know + # their membership is currently enabled. + score = info.score + total = self.bounce_score_threshold + return _('''<p>We have received some recent bounces from your + address. Your current <em>bounce score</em> is %(score)s out of a + maximum of %(total)s. Please double check that your subscribed + address is correct and that there are no problems with delivery to + this address. Your bounce score will be automatically reset if + the problems are corrected soon.''') else: return '' |
