Revert "Harden historical sorter header parsing"
This reverts commit edcad4560c.
This commit is contained in:
@@ -372,19 +372,6 @@ def stap2_bronmappen_routing(session: ImapSession, log: dict, dry: bool):
|
||||
mislukt += 1
|
||||
log_failure(log, "stap2", bron, uid, None, "fetch_header", status, data)
|
||||
continue
|
||||
if not isinstance(raw_header, bytes):
|
||||
mislukt += 1
|
||||
log_failure(
|
||||
log,
|
||||
"stap2",
|
||||
bron,
|
||||
uid,
|
||||
None,
|
||||
"fetch_header_type",
|
||||
status,
|
||||
f"expected bytes, got {type(raw_header).__name__}",
|
||||
)
|
||||
continue
|
||||
|
||||
msg = email.message_from_bytes(raw_header)
|
||||
from_raw = decode_hdr(msg.get("From", ""))
|
||||
@@ -515,19 +502,6 @@ def stap3_facturen(session: ImapSession, log: dict, dry: bool):
|
||||
mislukt += 1
|
||||
log_failure(log, "stap3", bron, uid, None, "fetch_header", status, data)
|
||||
continue
|
||||
if not isinstance(raw_header, bytes):
|
||||
mislukt += 1
|
||||
log_failure(
|
||||
log,
|
||||
"stap3",
|
||||
bron,
|
||||
uid,
|
||||
None,
|
||||
"fetch_header_type",
|
||||
status,
|
||||
f"expected bytes, got {type(raw_header).__name__}",
|
||||
)
|
||||
continue
|
||||
|
||||
msg = email.message_from_bytes(raw_header)
|
||||
date_str = msg.get("Date", "")
|
||||
|
||||
Reference in New Issue
Block a user