Browse Source

mark Einsatzrapport seen when processed

master v3.1.2
Tobias Brunner 1 month ago
parent
commit
cadfe1aa55
  1. 2
      pylokid/library/emailhandling.py
  2. 4
      pylokid/main.py
  3. 2
      pyproject.toml

2
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)

4
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)

2
pyproject.toml

@ -1,6 +1,6 @@
[tool.poetry]
name = "pylokid"
version = "3.1.1"
version = "3.1.2"
description = ""
authors = ["Tobias Brunner <tobias@tobru.ch>"]
license = "MIT"

Loading…
Cancel
Save