mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
make should_append_alias case insensitive
This commit is contained in:
parent
3898d2d7a6
commit
9a423f3247
1 changed files with 2 additions and 2 deletions
|
@ -279,9 +279,9 @@ def generate_reply_email():
|
|||
def should_append_alias(msg: Message, address: str):
|
||||
"""whether an alias should be appended to TO header in message"""
|
||||
|
||||
if msg["To"] and address in msg["To"]:
|
||||
if msg["To"] and address.lower() in msg["To"].lower():
|
||||
return False
|
||||
if msg["Cc"] and address in msg["Cc"]:
|
||||
if msg["Cc"] and address.lower() in msg["Cc"].lower():
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue