add strip() to rcpt_to just in case

This commit is contained in:
Son NK 2020-05-10 16:33:54 +02:00
parent 2755e67c31
commit 7f6ba313fd
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ def handle_forward(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, s
"""return whether an email has been delivered and
the smtp status ("250 Message accepted", "550 Non-existent email address", etc)
"""
address = rcpt_to.lower() # alias@SL
address = rcpt_to.lower().strip() # alias@SL
alias = Alias.get_by(email=address)
if not alias: