diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 15:18:47 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 15:18:47 -0400 |
commit | 9ead0d56c5f282d700181873b185c4e868f09350 (patch) | |
tree | 70f647910a4215888ca7e4cdc413a5607356fbf2 /b4/mbox.py | |
parent | 80febe77d774bc947fd754310a9b64228d5de489 (diff) | |
download | b4-9ead0d56c5f282d700181873b185c4e868f09350.tar.gz |
Match applied patches using message-id
Track message-id for each patch and try to apply to the Link: or
Message-Id: trailers, if we find them.
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/mbox.py')
-rw-r--r-- | b4/mbox.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -197,14 +197,14 @@ def thanks_record_am(lser): if pmsg.attestation is None: logger.debug('Unable to get hashes for all patches, not tracking for thanks') return - patches.append((pmsg.subject, pmsg.pwhash)) + patches.append((pmsg.subject, pmsg.pwhash, pmsg.msgid)) lmsg = lser.patches[0] if lmsg is None: lmsg = lser.patches[1] - allto = email.utils.getaddresses([str(x) for x in lmsg.msg.get_all('to', [])]) - allcc = email.utils.getaddresses([str(x) for x in lmsg.msg.get_all('cc', [])]) + allto = email.utils.getaddresses([b4.LoreMessage.clean_header(x) for x in lmsg.msg.get_all('to', [])]) + allcc = email.utils.getaddresses([b4.LoreMessage.clean_header(x) for x in lmsg.msg.get_all('cc', [])]) out = { 'msgid': lmsg.msgid, |