From 967cdfad522eaf52d342c6dc664ec270eb52cb18 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 10 Nov 1999 17:59:35 +0000 Subject: Use the new Mailman.Message.Message objects for the incoming message --- scripts/answer_majordomo_mail | 2 +- scripts/mailowner | 2 +- scripts/owner | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/answer_majordomo_mail b/scripts/answer_majordomo_mail index 4ef5fdbc6..9a3b753d9 100755 --- a/scripts/answer_majordomo_mail +++ b/scripts/answer_majordomo_mail @@ -32,7 +32,7 @@ try: except IOError: pass # Oh well - SOL on redirect, errors show thru. -msg = Message.IncomingMessage() +msg = Message.Message(sys.stdin) txtfile = os.path.join(paths.prefix, 'misc/majordomo.answer.txt') text = open(txtfile, 'r').read() Utils.SendTextToUser('Your mail to Majordomo...', text, msg.GetSender(), diff --git a/scripts/mailowner b/scripts/mailowner index c3d747d92..e53c71201 100755 --- a/scripts/mailowner +++ b/scripts/mailowner @@ -41,7 +41,7 @@ except IOError: # and should send back an error message when it does. mlist = MailList.MailList(sys.argv[1]) try: - msg = Message.IncomingMessage() + msg = Message.Message(sys.stdin) if not mlist.bounce_processing or not mlist.ScanMessage(msg): mlist.DeliverToOwner(msg, mlist.owner) diff --git a/scripts/owner b/scripts/owner index c3d747d92..e53c71201 100755 --- a/scripts/owner +++ b/scripts/owner @@ -41,7 +41,7 @@ except IOError: # and should send back an error message when it does. mlist = MailList.MailList(sys.argv[1]) try: - msg = Message.IncomingMessage() + msg = Message.Message(sys.stdin) if not mlist.bounce_processing or not mlist.ScanMessage(msg): mlist.DeliverToOwner(msg, mlist.owner) -- cgit v1.3.1