ignore hotmail bounce that uses 'Undisclosed recipients:;' in :To header
This commit is contained in:
parent
9299904fc9
commit
de0f838950
|
@ -1373,7 +1373,13 @@ def handle_hotmail_complaint(msg: Message) -> bool:
|
||||||
LOG.e("cannot find the alias")
|
LOG.e("cannot find the alias")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
try:
|
||||||
_, alias_address = parse_full_address(get_header_unicode(to_header))
|
_, alias_address = parse_full_address(get_header_unicode(to_header))
|
||||||
|
except ValueError:
|
||||||
|
# to_header can be something like 'Undisclosed recipients:;'
|
||||||
|
LOG.w("cannot parse %s", to_header)
|
||||||
|
return False
|
||||||
|
|
||||||
alias = Alias.get_by(email=alias_address)
|
alias = Alias.get_by(email=alias_address)
|
||||||
|
|
||||||
if not alias:
|
if not alias:
|
||||||
|
|
Loading…
Reference in a new issue