summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mailinglist.py
diff options
context:
space:
mode:
authorAurélien Bompard2016-02-29 12:08:43 +0100
committerBarry Warsaw2016-02-29 21:52:13 -0500
commit9684f1fc0e8bbe2c41566bf16dab92a0ff0f8b81 (patch)
tree19ccd0ee3a5d7500a4ad97f792a040ece7ffc663 /src/mailman/interfaces/mailinglist.py
parentef9cdf45000b1172c3973b329ebe7ed32d604fb1 (diff)
downloadmailman-9684f1fc0e8bbe2c41566bf16dab92a0ff0f8b81.tar.gz
mailman-9684f1fc0e8bbe2c41566bf16dab92a0ff0f8b81.tar.zst
mailman-9684f1fc0e8bbe2c41566bf16dab92a0ff0f8b81.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 fc92425a8..53cea9d61 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, action=None):
+ def append(header, pattern, chain=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 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
+ :param chain: The chain to jump to, or None to use the site-wide
+ configuration. Defaults to None.
+ :type chain: string or None
:raises ValueError: if the header/pattern pair already exists for this
mailing list.
"""
- def insert(index, header, pattern, action=None):
+ def insert(index, header, pattern, chain=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 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
+ :param chain: The chain to jump to, or None to use the site-wide
+ configuration. Defaults to None.
+ :type chain: string or None
:raises ValueError: if the header/pattern pair already exists for this
mailing list.
"""