remove unnecessary sanitize on mailbox email

This commit is contained in:
Son NK 2020-09-14 20:02:46 +02:00
parent 5480f6d35b
commit b9b442294b

View file

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