mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
add strip() to rcpt_to just in case
This commit is contained in:
parent
2755e67c31
commit
7f6ba313fd
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue