Procházet zdrojové kódy

replace the "ra+string@simplelogin.co" by the alias

Son NK před 5 roky
rodič
revize
b84b7c332e
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      email_handler.py

+ 4 - 0
email_handler.py

@@ -563,6 +563,10 @@ def handle_reply(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, str
         if custom_domain.dkim_verified:
             add_dkim_signature(msg, alias_domain)
 
+    # replace the "ra+string@simplelogin.co" by the alias in the email body
+    # as this is usually included in when replying
+    msg.replace(reply_email.encode(), alias.encode())
+
     smtp.sendmail(
         alias.email,
         contact.website_email,