From 23d3b28d080445c2e89af804e566d205200d500a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 15 Jun 2022 23:45:14 +0200 Subject: [PATCH] thunderbird: do not rely on x-mozilla-status For some reason, incoming messages are still set as "read". --- bin/thunderbird-notify | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/thunderbird-notify b/bin/thunderbird-notify index dec46a7..4610bce 100755 --- a/bin/thunderbird-notify +++ b/bin/thunderbird-notify @@ -98,10 +98,7 @@ def notify_new_messages(path): subject = parsed.get("subject") author = parsed.get("from") messageid = parsed.get("message-id") - # https://vincent.bernat.ch/en/x-mozilla-status - status = parsed.get("x-mozilla-status") - status = int(status) & 0x1 if status else 0 - if subject is not None and author is not None and status == 0: + if subject is not None and author is not None: actions = [] if messageid is None else [messageid.strip("<>"), "Open"] notify.Notify( "Thunderbird",