summaryrefslogtreecommitdiff
path: root/src/mailman/runners/docs/incoming.rst
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/runners/docs/incoming.rst')
-rw-r--r--src/mailman/runners/docs/incoming.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/runners/docs/incoming.rst b/src/mailman/runners/docs/incoming.rst
index d4fb65c85..fa425980b 100644
--- a/src/mailman/runners/docs/incoming.rst
+++ b/src/mailman/runners/docs/incoming.rst
@@ -89,9 +89,13 @@ Accepted messages
We have a message that is going to be sent to the mailing list. Once Anne is
a member of the mailing list, this message is so perfectly fine for posting
that it will be accepted and forward to the pipeline queue.
+::
>>> from mailman.testing.helpers import subscribe
>>> subscribe(mlist, 'Anne')
+ <Member: Anne Person <aperson@example.com> on test@example.com
+ as MemberRole.member>
+
>>> msg = message_from_string("""\
... From: aperson@example.com
... To: test@example.com