Ver código fonte

delete Reply-To header in reply phase

Son NK 5 anos atrás
pai
commit
f1befd7024
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      email_handler.py

+ 2 - 2
email_handler.py

@@ -250,8 +250,8 @@ class MailHandler:
         msg.replace_header("From", alias)
 
         # some email providers like ProtonMail adds automatically the Reply-To field
-        # make sure to replace it too
-        add_or_replace_header(msg, "Reply-To", alias)
+        # make sure to delete it
+        delete_header(msg, "Reply-To")
 
         msg.replace_header("To", forward_email.website_email)