瀏覽代碼

remove whitespace for rcpt in forward phase

Son NK 5 年之前
父節點
當前提交
916e6a1a7f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
     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)
     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)
     alias = Alias.get_by(email=address)
     if not alias:
     if not alias: