From cadfe1aa5574a447941832721079e69ddda7e77b Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 9 Mar 2021 19:52:34 +0100 Subject: [PATCH] mark Einsatzrapport seen when processed --- pylokid/library/emailhandling.py | 2 +- pylokid/main.py | 4 ++++ pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pylokid/library/emailhandling.py b/pylokid/library/emailhandling.py index 1a2c0ac..da88cd3 100644 --- a/pylokid/library/emailhandling.py +++ b/pylokid/library/emailhandling.py @@ -77,7 +77,7 @@ class EmailHandling: temp.append(val) msg_id_subject_deduplicated[key] = val self.logger.info( - "Adding Message ID %s '%s' to list to process", msg_id, subject + "Adding Message ID %s '%s' to list to process", key, val ) else: self.mark_seen(key, key) diff --git a/pylokid/main.py b/pylokid/main.py index 2048a3a..634fa15 100644 --- a/pylokid/main.py +++ b/pylokid/main.py @@ -244,6 +244,10 @@ def main(): "Scan {} wurde bearbeitet und in Cloud geladen".format(f_id), title="Feuerwehr Scan bearbeitet - {}".format(f_id), ) + + # Marking message as seen, no need to reprocess again + imap_client.mark_seen(msg, f_id) + else: logger.error("[%s] Unknown type: %s", f_id, f_type) diff --git a/pyproject.toml b/pyproject.toml index 76fecd4..32e6d9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pylokid" -version = "3.1.1" +version = "3.1.2" description = "" authors = ["Tobias Brunner "] license = "MIT"