summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorbwarsaw2001-02-15 22:27:10 +0000
committerbwarsaw2001-02-15 22:27:10 +0000
commit6c2b0fc2cff29d035749b6cd63bde1e2dd7e6c74 (patch)
tree98e38d23eccc22a42001a93bee83af600ec1882d /contrib
parent844dbf717cda5d9788ff21e489e28d11bbac546b (diff)
downloadmailman-6c2b0fc2cff29d035749b6cd63bde1e2dd7e6c74.tar.gz
mailman-6c2b0fc2cff29d035749b6cd63bde1e2dd7e6c74.tar.zst
mailman-6c2b0fc2cff29d035749b6cd63bde1e2dd7e6c74.zip
Diffstat (limited to 'contrib')
-rw-r--r--contrib/auto11
1 files changed, 4 insertions, 7 deletions
diff --git a/contrib/auto b/contrib/auto
index 2d4374660..cb0c8d461 100644
--- a/contrib/auto
+++ b/contrib/auto
@@ -1,6 +1,6 @@
#! /usr/bin/env python
#
-# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
+# Copyright (C) 2000,2001 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -32,10 +32,9 @@ import paths
from Mailman import mm_cfg
from Mailman import Utils
from Mailman import MailList
-from Mailman import Message
from Mailman import Errors
+from Mailman.Queue.sbcache import get_switchboard
from Mailman.Logging.Utils import LogStdErr
-from Mailman.Logging.Syslog import syslog
# Error code if it's really not a Mailman list addr destination
EX_NOUSER = 67
@@ -101,10 +100,8 @@ def main():
print >> sys.stderr, 'Bad sub-destination:', extension
return EX_NOUSER
- # Get the message from standard input
- msg = Message.Message(sys.stdin)
- msg.Enqueue(mlist, **{subdest: 1})
- # success
+ inq = get_switchboard(mm_cfg.INQUEUE_DIR)
+ inq.enqueue(sys.stdin.read(), listname=listname, **{subdest: 1})
return 0