From bee889b6a184ed2d1855b10a326a14e0e18b2297 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Thu, 2 Nov 2023 13:25:49 -0400 Subject: 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: 78e76e2e4f71485a632f1c1ae83032e0e9341a9e) Signed-off-by: Trevor Gamblin Signed-off-by: Richard Purdie (cherry picked from commit 86e9afe09a346586114133f5a7470304d2ed733f) Signed-off-by: Steve Sakoman --- scripts/patchtest-send-results | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" # extract the submitter email address and use it as the reply address # for the results -reply_address = re.findall("<(.*)>", mbox[0]['from'])[0] +reply_address = mbox[0]['from'] # extract the message ID and use that as the in-reply-to address in_reply_to = re.findall("<(.*)>", mbox[0]['Message-ID'])[0] -- cgit v1.2.3-54-g00ecf