mirror of
https://gitlab.com/kernel-firmware/linux-firmware.git
synced 2025-12-10 07:44:48 +01:00
Merge branch 'mlimonci/fix-email' into 'main'
Fix the robot email script See merge request kernel-firmware/linux-firmware!36
This commit is contained in:
commit
d983107a2d
1 changed files with 5 additions and 4 deletions
|
|
@ -79,11 +79,12 @@ def reply_email(content, branch):
|
||||||
reply = email.message.EmailMessage()
|
reply = email.message.EmailMessage()
|
||||||
|
|
||||||
orig = email.message_from_string(content)
|
orig = email.message_from_string(content)
|
||||||
targets = email.utils.getaddresses(
|
reply["To"] = ", ".join(
|
||||||
orig.get_all("to", []) + orig.get_all("cc", []) + orig.get_all("from", [])
|
email.utils.formataddr(t)
|
||||||
|
for t in email.utils.getaddresses(
|
||||||
|
orig.get_all("from", []) + orig.get_all("to", []) + orig.get_all("cc", [])
|
||||||
|
)
|
||||||
)
|
)
|
||||||
for target in targets:
|
|
||||||
reply["To"] += email.utils.formataddr(target)
|
|
||||||
|
|
||||||
reply["From"] = "linux-firmware@kernel.org"
|
reply["From"] = "linux-firmware@kernel.org"
|
||||||
reply["Subject"] = "Re: {}".format(orig["Subject"])
|
reply["Subject"] = "Re: {}".format(orig["Subject"])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue