fix: From
for @mail.ru
, @internet.ru
, @bk.ru
, @inbox.ru
, @list.ru
This commit is contained in:
parent
936cffd0ed
commit
993ca50352
4
main.py
4
main.py
@ -115,8 +115,8 @@ def forward_emails(account_config, emails, logger):
|
|||||||
to_name, to_address = parseaddr(original_msg['To'])
|
to_name, to_address = parseaddr(original_msg['To'])
|
||||||
to_name = decode_mime_words(to_name)
|
to_name = decode_mime_words(to_name)
|
||||||
msg = MIMEMultipart('mixed')
|
msg = MIMEMultipart('mixed')
|
||||||
if provider_in(account_config['email'], ["yandex.com"]):
|
if provider_in(account_config['email'], ["yandex.com", "mail.ru", "internet.ru", "bk.ru", "inbox.ru", "list.ru"]):
|
||||||
msg['From'] = f"{from_name} via Forwarder <{account_config['email']}>"
|
msg['From'] = f"Forwarder <{account_config['email']}>"
|
||||||
else:
|
else:
|
||||||
msg['From'] = f"{from_name} ({from_address}) via Forwarder <{account_config['email']}>"
|
msg['From'] = f"{from_name} ({from_address}) via Forwarder <{account_config['email']}>"
|
||||||
msg['To'] = f"{to_name} ({to_address}) via Forwarder <{recipient}>"
|
msg['To'] = f"{to_name} ({to_address}) via Forwarder <{recipient}>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user