summaryrefslogtreecommitdiff
path: root/src/mailman/queue/bounce.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-05-25 21:30:56 -0400
committerBarry Warsaw2011-05-25 21:30:56 -0400
commit0795e34d56a8f627348730843210cdba4071b26b (patch)
treee0eb6db1731e849d07c96c9deb00094f2b90f437 /src/mailman/queue/bounce.py
parent9887ba03016bbbd3a52d4a7df4f07906e984f431 (diff)
downloadmailman-0795e34d56a8f627348730843210cdba4071b26b.tar.gz
mailman-0795e34d56a8f627348730843210cdba4071b26b.tar.zst
mailman-0795e34d56a8f627348730843210cdba4071b26b.zip
Diffstat (limited to 'src/mailman/queue/bounce.py')
-rw-r--r--src/mailman/queue/bounce.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mailman/queue/bounce.py b/src/mailman/queue/bounce.py
index fb8b0124a..8787332e7 100644
--- a/src/mailman/queue/bounce.py
+++ b/src/mailman/queue/bounce.py
@@ -222,29 +222,3 @@ class BounceRunner(Runner, BounceMixin):
def _clean_up(self):
BounceMixin._clean_up(self)
Runner._clean_up(self)
-
-
-
-def maybe_forward(mlist, msg):
- # Does the list owner want to get non-matching bounce messages?
- # If not, simply discard it.
- if mlist.bounce_unrecognized_goes_to_list_owner:
- adminurl = mlist.GetScriptURL('admin', absolute=1) + '/bounce'
- mlist.ForwardMessage(msg,
- text=_("""\
-The attached message was received as a bounce, but either the bounce format
-was not recognized, or no member addresses could be extracted from it. This
-mailing list has been configured to send all unrecognized bounce messages to
-the list administrator(s).
-
-For more information see:
-%(adminurl)s
-
-"""),
- subject=_('Uncaught bounce notification'),
- tomoderators=0)
- log.error('forwarding unrecognized, message-id: %s',
- msg.get('message-id', 'n/a'))
- else:
- log.error('discarding unrecognized, message-id: %s',
- msg.get('message-id', 'n/a'))