mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
patchtest-send-results: use Message-ID directly
There's no need to use regex for extracting the Message-ID field from the patch email and mangle it by removing the angle brackets in the process. Pull it directly from the mbox so that Patchtest's replies have even fewer differences when compared to other replies. Also add a TODO so that it's clear this needs adjustment when full series support is added. (From OE-Core rev: 1ce51580a23869a9c0f409446ff717d471fb60db) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
29c9b86162
commit
5c8e1e9955
|
|
@ -64,7 +64,9 @@ subject_line = f"Patchtest results for {mbox_subject}"
|
|||
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]
|
||||
# TODO: This will need to change again when patchtest can handle a whole
|
||||
# series at once
|
||||
in_reply_to = mbox[0]['Message-ID']
|
||||
|
||||
# the address the results email is sent from
|
||||
from_address = "patchtest@automation.yoctoproject.org"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user