summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-03-03 06:12:57 +0000
committerbwarsaw2000-03-03 06:12:57 +0000
commita8a6bb9e57d980739afc5ead290e78796e2ab6e9 (patch)
tree7cbf055df976a013a88a2c4729eee4dd2efa96a6
parent8a8989e349d4fc1911de97ca96ca478399c032ae (diff)
downloadmailman-a8a6bb9e57d980739afc5ead290e78796e2ab6e9.tar.gz
mailman-a8a6bb9e57d980739afc5ead290e78796e2ab6e9.tar.zst
mailman-a8a6bb9e57d980739afc5ead290e78796e2ab6e9.zip
process(): Use only msg.GetSender() as the way to get the "author"
address of the message. GetEnvelopeSender() no longer exists (and GetSender() keys off of USE_ENVELOPE_SENDER, so it still has the same basic functionality).
Diffstat (limited to '')
-rw-r--r--Mailman/Handlers/Hold.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index 6fe05f020..8d2852c24 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -88,15 +88,13 @@ def process(mlist, msg):
# get the sender of the message
listname = mlist.internal_name()
adminaddr = listname + '-admin'
- sender = None
- if mm_cfg.USE_ENVELOPE_SENDER:
- sender = msg.GetEnvelopeSender()
+ sender = msg.GetSender()
# Special case an ugly sendmail feature: If there exists an alias of the
# form "owner-foo: bar" and sendmail receives mail for address "foo",
# sendmail will change the envelope sender of the message to "bar" before
# delivering. This feature does not appear to be configurable. *Boggle*.
if not sender or sender[:len(listname)+6] == adminaddr:
- sender = msg.GetSender()
+ sender = msg.GetSender(envelope=0)
#
# is the poster in the list of explicitly forbidden posters?
if len(mlist.forbidden_posters):