mirror of
https://github.com/moparisthebest/python-libmilter
synced 2024-11-21 08:35:08 -05:00
Get rcpt_to from data instead of the {rcpt_addr} macro, they are the same in sendmail, but postfix only sends lowercase {rcpt_addr} even when the address is upper or mixed
This commit is contained in:
parent
030a363a6f
commit
77ddcf5b52
@ -815,8 +815,8 @@ class MilterProtocol(object):
|
||||
data = data[0]
|
||||
rcpt = ''
|
||||
if data:
|
||||
rcpt = data[1:-1]
|
||||
if md.has_key('rcpt_addr'):
|
||||
rcpt = data[2:-2]
|
||||
elif md.has_key('rcpt_addr'):
|
||||
rcpt = md['rcpt_addr']
|
||||
if md.has_key('i'):
|
||||
self._qid = md['i']
|
||||
|
Loading…
Reference in New Issue
Block a user