File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
patchwork/steps/SendEmail Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,12 @@ def __init__(self, inputs):
2626 def run (self ) -> dict :
2727 msg = EmailMessage ()
2828 msg .set_content (mustache_render (self .body , self .email_template_value ))
29+ msg ["Subject" ] = mustache_render (self .subject , self .email_template_value )
2930 msg ["From" ] = self .sender_email
3031 msg ["To" ] = self .recipient_email
31-
3232 if self .reply_message_id is not None :
3333 msg .add_header ("References" , self .reply_message_id )
3434 msg .add_header ("In-Reply-To" , self .reply_message_id )
35- else :
36- if self .subject is not None :
37- msg ["Subject" ] = mustache_render (self .subject , self .email_template_value )
38- else :
39- msg ["Subject" ] = "Patchwork Execution Email"
4035
4136 smtp_clazz = smtplib .SMTP
4237 if self .is_ssl :
You can’t perform that action at this time.
0 commit comments