mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
quick workaround for prod
This commit is contained in:
parent
3925ebce1e
commit
f34c1f555f
@ -421,10 +421,11 @@ def handle_forward(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, s
|
||||
|
||||
# Sometimes when user clicks on "reply all"
|
||||
# an email is sent to the same alias that the previous message is destined to
|
||||
if envelope.mail_from == mailbox_email:
|
||||
# nothing to do
|
||||
LOG.d("Forward from %s to %s, nothing to do", envelope.mail_from, mailbox_email)
|
||||
return False, "550 SL ignored"
|
||||
# todo: uncomment this
|
||||
# if envelope.mail_from == mailbox_email:
|
||||
# # nothing to do
|
||||
# LOG.d("Forward from %s to %s, nothing to do", envelope.mail_from, mailbox_email)
|
||||
# return False, "550 SL ignored"
|
||||
|
||||
contact = get_or_create_contact(msg["From"], alias)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user