summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mailinglist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/interfaces/mailinglist.py')
-rw-r--r--src/mailman/interfaces/mailinglist.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mailman/interfaces/mailinglist.py b/src/mailman/interfaces/mailinglist.py
index f112b2a11..c69d04771 100644
--- a/src/mailman/interfaces/mailinglist.py
+++ b/src/mailman/interfaces/mailinglist.py
@@ -839,3 +839,23 @@ class IListArchiverSet(Interface):
:return: the matching `IListArchiver` or None if the named archiver
does not exist.
"""
+
+
+
+class IHeaderMatches(Interface):
+ """Registration record for a single bounce event."""
+
+ mailing_list = Attribute(
+ """The mailing list for the header match.""")
+
+ header = Attribute(
+ """The email header that will be checked.""")
+
+ pattern = Attribute(
+ """The regular expression to match.""")
+
+ chain = Attribute(
+ """The chain to jump to on a match.
+
+ If it is None, the configuration file action for spam is used.
+ """)