summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-11-10 17:59:35 +0000
committerbwarsaw1999-11-10 17:59:35 +0000
commit967cdfad522eaf52d342c6dc664ec270eb52cb18 (patch)
treed567ae9b5f9f202523e8abb4d066ca255cac72d0
parente82106f7fe5e8cc9cfbd4cd5166c5d4f6cf26bc0 (diff)
downloadmailman-967cdfad522eaf52d342c6dc664ec270eb52cb18.tar.gz
mailman-967cdfad522eaf52d342c6dc664ec270eb52cb18.tar.zst
mailman-967cdfad522eaf52d342c6dc664ec270eb52cb18.zip
Use the new Mailman.Message.Message objects for the incoming message
-rwxr-xr-xscripts/answer_majordomo_mail2
-rwxr-xr-xscripts/mailowner2
-rwxr-xr-xscripts/owner2
3 files changed, 3 insertions, 3 deletions
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)