summaryrefslogtreecommitdiff
path: root/src/mailman/chains/reject.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-20 20:47:26 -0400
committerBarry Warsaw2012-07-20 20:47:26 -0400
commit27672b5c94c78fecbda8cf91bb62618b7a0dc7cb (patch)
treef982344c91b096d6bfcb848147a5059b5ab0c0a1 /src/mailman/chains/reject.py
parente1aa901fbdcc6d7fbb495a1d9ca1a5079008164a (diff)
parent01415190ab44e69a8f09a6411564a7cb288404e8 (diff)
downloadmailman-27672b5c94c78fecbda8cf91bb62618b7a0dc7cb.tar.gz
mailman-27672b5c94c78fecbda8cf91bb62618b7a0dc7cb.tar.zst
mailman-27672b5c94c78fecbda8cf91bb62618b7a0dc7cb.zip
Diffstat (limited to 'src/mailman/chains/reject.py')
-rw-r--r--src/mailman/chains/reject.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mailman/chains/reject.py b/src/mailman/chains/reject.py
index cf1b86fb2..3adc69e3a 100644
--- a/src/mailman/chains/reject.py
+++ b/src/mailman/chains/reject.py
@@ -22,16 +22,17 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
'RejectChain',
- 'RejectNotification',
]
import logging
+
from zope.event import notify
from mailman.app.bounces import bounce_message
-from mailman.chains.base import ChainNotification, TerminalChainBase
+from mailman.chains.base import TerminalChainBase
from mailman.core.i18n import _
+from mailman.interfaces.chain import RejectEvent
log = logging.getLogger('mailman.vette')
@@ -39,11 +40,6 @@ SEMISPACE = '; '
-class RejectNotification(ChainNotification):
- """A notification event signaling that a message is being rejected."""
-
-
-
class RejectChain(TerminalChainBase):
"""Reject/bounce a message."""
@@ -64,4 +60,4 @@ class RejectChain(TerminalChainBase):
# XXX Exception/reason
bounce_message(mlist, msg)
log.info('REJECT: %s', msg.get('message-id', 'n/a'))
- notify(RejectNotification(mlist, msg, msgdata, self))
+ notify(RejectEvent(mlist, msg, msgdata, self))