summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2023-11-02 13:25:49 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-02 21:48:30 +0000
commitb53d1287d24f506a08905fa86a81aca21203e73a (patch)
tree13c4e3bb4239185a7842452ed9ea36127979d840
parent6cc017460dbe0450f270e44727954830e60aca8e (diff)
downloadpoky-b53d1287d24f506a08905fa86a81aca21203e73a.tar.gz
patchtest-send-results: fix sender parsing
Not all mbox 'from' fields will contain angle brackets, so the re.findall invocation used for getting a reply_address may fail. Use a simpler reference to the field to get the sender's email address. (From OE-Core rev: 86e9afe09a346586114133f5a7470304d2ed733f) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/patchtest-send-results2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/patchtest-send-results b/scripts/patchtest-send-results
index 1df81f943a..71b73f0940 100755
--- a/scripts/patchtest-send-results
+++ b/scripts/patchtest-send-results
@@ -59,7 +59,7 @@ subject_line = f"Patchtest results for {mbox_subject}"
59 59
60# extract the submitter email address and use it as the reply address 60# extract the submitter email address and use it as the reply address
61# for the results 61# for the results
62reply_address = re.findall("<(.*)>", mbox[0]['from'])[0] 62reply_address = mbox[0]['from']
63 63
64# extract the message ID and use that as the in-reply-to address 64# extract the message ID and use that as the in-reply-to address
65in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0] 65in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0]