summaryrefslogtreecommitdiff
path: root/scripts/mailowner
diff options
context:
space:
mode:
authorbwarsaw1998-06-19 19:46:57 +0000
committerbwarsaw1998-06-19 19:46:57 +0000
commit8d1ec3ae14fcc935284c2fff960265d234ed54e2 (patch)
tree67e69a8c365dec4d0ca5c2042795eb298a449f2f /scripts/mailowner
parent2ceaa1195001558d1ed1f8718fe329ad437978f3 (diff)
downloadmailman-8d1ec3ae14fcc935284c2fff960265d234ed54e2.tar.gz
mailman-8d1ec3ae14fcc935284c2fff960265d234ed54e2.tar.zst
mailman-8d1ec3ae14fcc935284c2fff960265d234ed54e2.zip
Packagized
Diffstat (limited to 'scripts/mailowner')
-rwxr-xr-xscripts/mailowner15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/mailowner b/scripts/mailowner
index 51b724e35..ab6c760d1 100755
--- a/scripts/mailowner
+++ b/scripts/mailowner
@@ -21,25 +21,28 @@
This script gets called by the wrapper.
Stdin is the mail message, and argv[1] is the name of the mailing list
-whose owner(s) to send mail to."""
+whose owner(s) to send mail to.
+"""
import sys
import paths
-import maillist, mm_message, mm_utils
+from Mailman import MailList
+from Mailman import Message
+from Mailman import Utils
try:
- sys.stderr = mm_utils.StampedLogger("error", label = 'post',
- manual_reprime=1, nofail=0)
+ sys.stderr = Utils.StampedLogger("error", label = 'post',
+ manual_reprime=1, nofail=0)
except IOError:
pass # Oh well - SOL on redirect, errors show thru.
# Only let one program run at once per list.
# TODO: This *can* fail, and should send back an error message when it does.
-current_list = maillist.MailList(sys.argv[1])
+current_list = MailList.MailList(sys.argv[1])
try:
- msg = mm_message.IncomingMessage()
+ msg = Message.IncomingMessage()
if not current_list.bounce_processing or not current_list.ScanMessage(msg):
current_list.DeliverToList(msg, current_list.owner, '', '')
# Let another process run.