Fallschlüssel auch bei Message-ID mit Sonderzeichen bilden

This commit is contained in:
Rsclub2_2 committed 2026-11-15 00:46:12 +01:00
1 parent 57b93cefff
commit 249293f382
3 files changed
+23 -7

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ STATES = ("new", "running", "unsubscribed", "not_possible", "unclear")
def case_key(message) -> str:
"""Message-ID of the mail in the collection mailbox; the UID changes when the mail is moved."""
mid = (message.get("Message-ID") or "").strip()
mid = str(message.get("Message-ID") or "").strip()
if mid:
return mid
raw = "|".join(str(message.get(h, "")) for h in ("Date", "Subject", "From"))