diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 000000000..6d2eaaa41 --- /dev/null +++ b/.semgrepignore @@ -0,0 +1 @@ +.github/ \ No newline at end of file diff --git a/patchwork/steps/SendEmail/SendEmail.py b/patchwork/steps/SendEmail/SendEmail.py index 8527e9ac9..9cdbadd7f 100644 --- a/patchwork/steps/SendEmail/SendEmail.py +++ b/patchwork/steps/SendEmail/SendEmail.py @@ -3,7 +3,6 @@ import smtplib from email.message import EmailMessage -from patchwork.common.utils.input_parsing import parse_to_list from patchwork.common.utils.utils import mustache_render from patchwork.step import Step from patchwork.steps.SendEmail.typed import SendEmailInputs, SendEmailOutputs @@ -16,7 +15,7 @@ def __init__(self, inputs): self.subject = inputs.get("subject", "Patchwork Execution Email") self.body = inputs.get("body", "Patchwork Execution Email") self.sender_email = inputs["sender_email"] - self.recipient_email = parse_to_list(inputs["recipient_email"], [" ", ","]) + self.recipient_email = inputs["recipient_email"] self.smtp_host = inputs.get("smtp_host", "smtp.gmail.com") self.smtp_username = inputs["smtp_username"] self.smtp_password = inputs["smtp_password"] @@ -29,7 +28,7 @@ def run(self) -> dict: msg.set_content(mustache_render(self.body, self.email_template_value)) msg["Subject"] = mustache_render(self.subject, self.email_template_value) msg["From"] = self.sender_email - msg["To"] = ", ".join(self.recipient_email) + msg["To"] = self.recipient_email if self.reply_message_id is not None: msg.add_header("Reference", self.reply_message_id) msg.add_header("In-Reply-To", self.reply_message_id) diff --git a/pyproject.toml b/pyproject.toml index 6aa21c230..70b6b4739 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "patchwork-cli" -version = "0.0.115" +version = "0.0.116" description = "" authors = ["patched.codes"] license = "AGPL"