Kaynağa Gözat

remove whitespace for rcpt in forward phase

Son NK 4 yıl önce
ebeveyn
işleme
916e6a1a7f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -426,7 +426,7 @@ async def handle_forward(
     is_success indicates whether an email has been delivered and
     smtp_status is the SMTP Status ("250 Message accepted", "550 Non-existent email address", etc)
     """
-    address = rcpt_to.lower().strip()  # alias@SL
+    address = rcpt_to.lower().strip().replace(" ", "")  # alias@SL
 
     alias = Alias.get_by(email=address)
     if not alias: