summaryrefslogtreecommitdiff
path: root/src/mailman/chains/owner.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/owner.py
parente1aa901fbdcc6d7fbb495a1d9ca1a5079008164a (diff)
parent01415190ab44e69a8f09a6411564a7cb288404e8 (diff)
downloadmailman-27672b5c94c78fecbda8cf91bb62618b7a0dc7cb.tar.gz
mailman-27672b5c94c78fecbda8cf91bb62618b7a0dc7cb.tar.zst
mailman-27672b5c94c78fecbda8cf91bb62618b7a0dc7cb.zip
Diffstat (limited to 'src/mailman/chains/owner.py')
-rw-r--r--src/mailman/chains/owner.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mailman/chains/owner.py b/src/mailman/chains/owner.py
index ad0a04cea..22ed4b996 100644
--- a/src/mailman/chains/owner.py
+++ b/src/mailman/chains/owner.py
@@ -29,20 +29,16 @@ import logging
from zope.event import notify
-from mailman.chains.base import ChainNotification, TerminalChainBase
+from mailman.chains.base import TerminalChainBase
from mailman.config import config
from mailman.core.i18n import _
+from mailman.interfaces.chain import AcceptOwnerEvent
log = logging.getLogger('mailman.vette')
-class OwnerNotification(ChainNotification):
- """An event signaling that a message is accepted to the -owner address."""
-
-
-
class BuiltInOwnerChain(TerminalChainBase):
"""Default built-in -owner address chain."""
@@ -53,4 +49,4 @@ class BuiltInOwnerChain(TerminalChainBase):
# At least for now, everything posted to -owners goes through.
config.switchboards['pipeline'].enqueue(msg, msgdata)
log.info('OWNER: %s', msg.get('message-id', 'n/a'))
- notify(OwnerNotification(mlist, msg, msgdata, self))
+ notify(AcceptOwnerEvent(mlist, msg, msgdata, self))