Fix: Proper handling of "Auto-Submitted: no" mail header
This commit is contained in:
parent
d68e826495
commit
daee1654d3
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def process_mail(mail: bytes):
|
|||
raise EasyWksError('Sender mail is not a valid mail address')
|
||||
if sender_domain not in Config.domains:
|
||||
raise EasyWksError(f'Domain {sender_domain} not supported')
|
||||
if msg.get('x-loop', '') == XLOOP_HEADER or 'auto-submitted' in msg:
|
||||
if msg.get('x-loop', '') == XLOOP_HEADER or msg.get('auto-submitted', 'no') != 'no':
|
||||
# Mail has somehow looped back to us, discard
|
||||
return
|
||||
submission_address: str = Config[sender_domain].submission_address
|
||||
|
|
Loading…
Reference in a new issue