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

View File

@ -815,8 +815,8 @@ class MilterProtocol(object):
data = data[0] data = data[0]
rcpt = '' rcpt = ''
if data: if data:
rcpt = data[1:-1] rcpt = data[2:-2]
if md.has_key('rcpt_addr'): elif md.has_key('rcpt_addr'):
rcpt = md['rcpt_addr'] rcpt = md['rcpt_addr']
if md.has_key('i'): if md.has_key('i'):
self._qid = md['i'] self._qid = md['i']