summaryrefslogtreecommitdiff
path: root/src/mailman/rules
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules')
-rw-r--r--src/mailman/rules/docs/administrivia.txt1
-rw-r--r--src/mailman/rules/docs/approve.txt1
-rw-r--r--src/mailman/rules/docs/emergency.txt1
-rw-r--r--src/mailman/rules/docs/header-matching.txt1
-rw-r--r--src/mailman/rules/docs/loop.txt1
-rw-r--r--src/mailman/rules/docs/max-size.txt1
-rw-r--r--src/mailman/rules/docs/moderation.txt1
-rw-r--r--src/mailman/rules/docs/news-moderation.txt1
-rw-r--r--src/mailman/rules/docs/no-subject.txt1
-rw-r--r--src/mailman/rules/docs/recipients.txt1
-rw-r--r--src/mailman/rules/docs/rules.txt1
-rw-r--r--src/mailman/rules/docs/suspicious.txt1
12 files changed, 0 insertions, 12 deletions
diff --git a/src/mailman/rules/docs/administrivia.txt b/src/mailman/rules/docs/administrivia.txt
index 4da0a81b1..082409622 100644
--- a/src/mailman/rules/docs/administrivia.txt
+++ b/src/mailman/rules/docs/administrivia.txt
@@ -7,7 +7,6 @@ commands in the Subject header or first few lines of the payload. This is
used to catch messages posted to the list which should have been sent to the
-request robot address.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> mlist.administrivia = True
>>> rule = config.rules['administrivia']
diff --git a/src/mailman/rules/docs/approve.txt b/src/mailman/rules/docs/approve.txt
index 868827cf0..b92df3bdc 100644
--- a/src/mailman/rules/docs/approve.txt
+++ b/src/mailman/rules/docs/approve.txt
@@ -14,7 +14,6 @@ approval queue. This has several use cases:
In order to support this, a mailing list can be given a 'moderator password'
which is shared among all the administrators.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> mlist.moderator_password = 'abcxyz'
diff --git a/src/mailman/rules/docs/emergency.txt b/src/mailman/rules/docs/emergency.txt
index 4ee3e8e74..70f455dca 100644
--- a/src/mailman/rules/docs/emergency.txt
+++ b/src/mailman/rules/docs/emergency.txt
@@ -5,7 +5,6 @@ Emergency
When the mailing list has its emergency flag set, all messages posted to the
list are held for moderator approval.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> msg = message_from_string("""\
... From: aperson@example.com
diff --git a/src/mailman/rules/docs/header-matching.txt b/src/mailman/rules/docs/header-matching.txt
index 9956832ea..217625fb0 100644
--- a/src/mailman/rules/docs/header-matching.txt
+++ b/src/mailman/rules/docs/header-matching.txt
@@ -6,7 +6,6 @@ Mailman can do pattern based header matching during its normal rule
processing. There is a set of site-wide default header matches specified in
the configuration file under the [spam.headers] section.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
Because the default [spam.headers] section is empty, we'll just extend the
diff --git a/src/mailman/rules/docs/loop.txt b/src/mailman/rules/docs/loop.txt
index 927df0e9b..bb6da364b 100644
--- a/src/mailman/rules/docs/loop.txt
+++ b/src/mailman/rules/docs/loop.txt
@@ -5,7 +5,6 @@ Posting loops
To avoid a posting loop, Mailman has a rule to check for the existence of an
X-BeenThere header with the value of the list's posting address.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['loop']
>>> print rule.name
diff --git a/src/mailman/rules/docs/max-size.txt b/src/mailman/rules/docs/max-size.txt
index 264281b65..e3cc0ccf9 100644
--- a/src/mailman/rules/docs/max-size.txt
+++ b/src/mailman/rules/docs/max-size.txt
@@ -7,7 +7,6 @@ specified maximum. Generally this is used to prevent huge attachments from
getting posted to the list. This value is calculated in terms of KB (1024
bytes).
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['max-size']
>>> print rule.name
diff --git a/src/mailman/rules/docs/moderation.txt b/src/mailman/rules/docs/moderation.txt
index 335dd4f5b..b268e9d4a 100644
--- a/src/mailman/rules/docs/moderation.txt
+++ b/src/mailman/rules/docs/moderation.txt
@@ -7,7 +7,6 @@ postings, then only members with a cleared moderation flag will be able to
email the list without having those messages be held for approval. The
'moderation' rule determines whether the message should be moderated or not.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['moderation']
>>> print rule.name
diff --git a/src/mailman/rules/docs/news-moderation.txt b/src/mailman/rules/docs/news-moderation.txt
index 269079505..79ebde772 100644
--- a/src/mailman/rules/docs/news-moderation.txt
+++ b/src/mailman/rules/docs/news-moderation.txt
@@ -9,7 +9,6 @@ posted to the newsgroup, and from there, gated to the mailing list. It's a
circuitous route, but it works nonetheless by holding all messages posted
directly to the mailing list.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['news-moderation']
>>> print rule.name
diff --git a/src/mailman/rules/docs/no-subject.txt b/src/mailman/rules/docs/no-subject.txt
index fa26006ef..733de00e4 100644
--- a/src/mailman/rules/docs/no-subject.txt
+++ b/src/mailman/rules/docs/no-subject.txt
@@ -5,7 +5,6 @@ No Subject header
This rule matches if the message has no Subject header, or if the header is
the empty string when stripped.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['no-subject']
>>> print rule.name
diff --git a/src/mailman/rules/docs/recipients.txt b/src/mailman/rules/docs/recipients.txt
index 724faa8ad..344a5f95f 100644
--- a/src/mailman/rules/docs/recipients.txt
+++ b/src/mailman/rules/docs/recipients.txt
@@ -5,7 +5,6 @@ Maximum number of recipients
The 'max-recipients' rule matches when there are more than the maximum allowed
number of explicit recipients addressed by the message.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['max-recipients']
>>> print rule.name
diff --git a/src/mailman/rules/docs/rules.txt b/src/mailman/rules/docs/rules.txt
index a21816944..e61ea547e 100644
--- a/src/mailman/rules/docs/rules.txt
+++ b/src/mailman/rules/docs/rules.txt
@@ -47,7 +47,6 @@ Individual rules can be checked to see if they match, by running the rule's
`check()` method. This returns a boolean indicating whether the rule was
matched or not.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> msg = message_from_string("""\
... From: aperson@example.com
diff --git a/src/mailman/rules/docs/suspicious.txt b/src/mailman/rules/docs/suspicious.txt
index 59b4493c4..e99fb49c4 100644
--- a/src/mailman/rules/docs/suspicious.txt
+++ b/src/mailman/rules/docs/suspicious.txt
@@ -6,7 +6,6 @@ Suspicious headers are a way for Mailman to hold messages that match a
particular regular expression. This mostly historical feature is fairly
confusing to users, and the list attribute that controls this is misnamed.
- >>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['suspicious-header']
>>> print rule.name