mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
do not put alias again when reply all
This commit is contained in:
parent
aa3a13c3ca
commit
e9cd043760
1 changed files with 1 additions and 2 deletions
|
@ -38,7 +38,7 @@ from email.mime.application import MIMEApplication
|
||||||
from email.mime.multipart import MIMEMultipart
|
from email.mime.multipart import MIMEMultipart
|
||||||
from email.parser import Parser
|
from email.parser import Parser
|
||||||
from email.policy import SMTPUTF8
|
from email.policy import SMTPUTF8
|
||||||
from email.utils import parseaddr, formataddr, getaddresses
|
from email.utils import parseaddr
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from smtplib import SMTP
|
from smtplib import SMTP
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
@ -319,7 +319,6 @@ def replace_header_when_reply(msg: Message, alias: Alias, header: str):
|
||||||
|
|
||||||
# no transformation when alias is already in the header
|
# no transformation when alias is already in the header
|
||||||
if email == alias.email:
|
if email == alias.email:
|
||||||
new_addrs.append(addr)
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
contact = Contact.get_by(reply_email=email)
|
contact = Contact.get_by(reply_email=email)
|
||||||
|
|
Loading…
Reference in a new issue