summaryrefslogtreecommitdiff
path: root/Mailman/MailCommandHandler.py
diff options
context:
space:
mode:
authorcotton1998-10-12 12:47:12 +0000
committercotton1998-10-12 12:47:12 +0000
commit918014eb343a767f86db40d136f2f39c793b1a24 (patch)
tree21b2acc2db39633476d2cf13488e5311643302ef /Mailman/MailCommandHandler.py
parent617cab957347d5f6c9e39100408d940c28c3b406 (diff)
downloadmailman-918014eb343a767f86db40d136f2f39c793b1a24.tar.gz
mailman-918014eb343a767f86db40d136f2f39c793b1a24.tar.zst
mailman-918014eb343a767f86db40d136f2f39c793b1a24.zip
Diffstat (limited to 'Mailman/MailCommandHandler.py')
-rw-r--r--Mailman/MailCommandHandler.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py
index 9ef4a5c42..7702eae82 100644
--- a/Mailman/MailCommandHandler.py
+++ b/Mailman/MailCommandHandler.py
@@ -84,6 +84,10 @@ class MailCommandHandler:
mail = Message.IncomingMessage()
subject = mail.getheader("subject")
sender = string.lower(mail.GetSender())
+ #
+ # shouldn't this be checking the username only part?
+ # why 'orphanage'?
+ #
if sender in ['daemon', 'nobody', 'mailer-daemon', 'postmaster',
'orphanage', 'postoffice']:
# This is for what are probably delivery-failure notices of
@@ -433,7 +437,7 @@ class MailCommandHandler:
digest = 0
done_digest = 1
elif string.lower(arg)[:8] == 'address=' and not address:
- address = string.lower(arg)[8:]
+ address = Utils.LCDomain(arg[8:])
elif not password:
password = arg
else:
@@ -445,7 +449,7 @@ class MailCommandHandler:
password = "%s%s" % (Utils.GetRandomSeed(),
Utils.GetRandomSeed())
if not address:
- subscribe_address = string.lower(mail.GetSender())
+ subscribe_address = Utils.LCDomain(mail.GetSender())
else:
subscribe_address = address
remote = mail.GetSender()