summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mailinglist.py
diff options
context:
space:
mode:
authorAurélien Bompard2016-02-02 18:10:18 +0100
committerBarry Warsaw2016-02-29 21:52:13 -0500
commit994660913bbd7dc08b8cef909b6715f43d37f0d5 (patch)
treed17930b6d325f2d785883dc17ea71cf6eaef848f /src/mailman/interfaces/mailinglist.py
parent9bf90986117e39450ec5bf1f86d29e5ed91f480d (diff)
downloadmailman-994660913bbd7dc08b8cef909b6715f43d37f0d5.tar.gz
mailman-994660913bbd7dc08b8cef909b6715f43d37f0d5.tar.zst
mailman-994660913bbd7dc08b8cef909b6715f43d37f0d5.zip
Diffstat (limited to 'src/mailman/interfaces/mailinglist.py')
-rw-r--r--src/mailman/interfaces/mailinglist.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mailman/interfaces/mailinglist.py b/src/mailman/interfaces/mailinglist.py
index 533bf89a7..d8a9977eb 100644
--- a/src/mailman/interfaces/mailinglist.py
+++ b/src/mailman/interfaces/mailinglist.py
@@ -880,7 +880,7 @@ class IHeaderMatchList(Interface):
def clear():
"""Clear the list of header matching rules."""
- def append(header, pattern, chain=None):
+ def append(header, pattern, action=None):
"""Append the given rule to this mailing list's header match list.
:param header: The email header to filter on. It will be converted to
@@ -888,14 +888,14 @@ class IHeaderMatchList(Interface):
:type header: string
:param pattern: The regular expression to use.
:type pattern: string
- :param chain: The chain to jump to, or None to use the site-wide
- configuration. Defaults to None.
- :type chain: string or None
+ :param action: The Action enum pointing to the chain to jump to, or
+ None to use the site-wide configuration. Defaults to None.
+ :type action: `Action` enum or None
:raises ValueError: if the header/pattern pair already exists for this
mailing list.
"""
- def insert(index, header, pattern, chain=None):
+ def insert(index, header, pattern, action=None):
"""Insert the given rule at the given index position in this mailing
list's header match list.
@@ -906,9 +906,9 @@ class IHeaderMatchList(Interface):
:type header: string
:param pattern: The regular expression to use.
:type pattern: string
- :param chain: The chain to jump to, or None to use the site-wide
- configuration. Defaults to None.
- :type chain: string or None
+ :param action: The Action enum pointing to the chain to jump to, or
+ None to use the site-wide configuration. Defaults to None.
+ :type action: `Action` enum or None
:raises ValueError: if the header/pattern pair already exists for this
mailing list.
"""