Revert "Harden historical sorter header parsing"

This reverts commit edcad4560c.
This commit is contained in:
2026-07-05 11:54:52 +02:00
parent edcad4560c
commit 0811a6ca5a
2 changed files with 0 additions and 30 deletions
-26
View File
@@ -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", "")