diff options
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/auto | 11 |
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 |
