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:
Travis Burtrum 2013-11-11 11:41:10 -05:00
parent 030a363a6f
commit 77ddcf5b52
1 changed files with 2 additions and 2 deletions

View File

@ -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']