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.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.
"""