summaryrefslogtreecommitdiff
path: root/mailman/queue/docs
diff options
context:
space:
mode:
authorBarry Warsaw2008-12-26 09:04:33 -0500
committerBarry Warsaw2008-12-26 09:04:33 -0500
commit1ffa4c74935a56a3c5de736fab052e33e4ab3d38 (patch)
treee44781f9de6e2ab284990000c08772664e999a5f /mailman/queue/docs
parentb8e68e7577aa12e0e355aabe2845981f0d73e3b5 (diff)
downloadmailman-1ffa4c74935a56a3c5de736fab052e33e4ab3d38.tar.gz
mailman-1ffa4c74935a56a3c5de736fab052e33e4ab3d38.tar.zst
mailman-1ffa4c74935a56a3c5de736fab052e33e4ab3d38.zip
Diffstat (limited to 'mailman/queue/docs')
-rw-r--r--mailman/queue/docs/outgoing.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/mailman/queue/docs/outgoing.txt b/mailman/queue/docs/outgoing.txt
index 9af554af7..851bdf474 100644
--- a/mailman/queue/docs/outgoing.txt
+++ b/mailman/queue/docs/outgoing.txt
@@ -47,8 +47,7 @@ injecting a message directly into the outgoing queue.
>>> handler = config.handlers['calculate-recipients']
>>> handler.process(mlist, msg, msgdata)
- >>> from mailman.queue import Switchboard
- >>> outgoing_queue = Switchboard(config.OUTQUEUE_DIR)
+ >>> outgoing_queue = config.switchboards['out']
>>> ignore = outgoing_queue.enqueue(
... msg, msgdata,
... verp=True, listname=mlist.fqdn_listname, tolist=True,
@@ -59,7 +58,7 @@ upstream SMTP, which happens to be our test server.
>>> from mailman.queue.outgoing import OutgoingRunner
>>> from mailman.testing.helpers import make_testable_runner
- >>> outgoing = make_testable_runner(OutgoingRunner)
+ >>> outgoing = make_testable_runner(OutgoingRunner, 'out')
>>> outgoing.run()
Three messages have been delivered to our SMTP server, one for each recipient.