Browse Source

remove unnecessary sanitize on mailbox email

Son NK 4 năm trước cách đây
mục cha
commit
b9b442294b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -456,7 +456,7 @@ async def handle_forward(
     mail_from = envelope.mail_from
     for mb in alias.mailboxes:
         # email send from a mailbox to alias
-        if mb.email.lower().strip() == mail_from:
+        if mb.email == mail_from:
             LOG.warning("cycle email sent from %s to %s", mb, alias)
             handle_email_sent_to_ourself(alias, mb, msg, alias.user)
             return [(True, "250 Message accepted for delivery")]