diff options
Diffstat (limited to 'src/mailman/rules/docs/no-subject.txt')
| -rw-r--r-- | src/mailman/rules/docs/no-subject.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rules/docs/no-subject.txt b/src/mailman/rules/docs/no-subject.txt index 733de00e4..4876bc82c 100644 --- a/src/mailman/rules/docs/no-subject.txt +++ b/src/mailman/rules/docs/no-subject.txt @@ -2,8 +2,8 @@ No Subject header ================= -This rule matches if the message has no Subject header, or if the header is -the empty string when stripped. +This rule matches if the message has no ``Subject:`` header, or if the header +is the empty string when stripped. >>> mlist = create_list('_xtest@example.com') >>> rule = config.rules['no-subject'] @@ -21,13 +21,13 @@ A message with a non-empty subject does not match the rule. >>> rule.check(mlist, msg, {}) False -Delete the Subject header and the rule matches. +Delete the ``Subject:`` header and the rule matches. >>> del msg['subject'] >>> rule.check(mlist, msg, {}) True -Even a Subject header with only whitespace still matches the rule. +Even a ``Subject:`` header with only whitespace still matches the rule. >>> msg['Subject'] = ' ' >>> rule.check(mlist, msg, {}) |
