From 4ad8d09ad4d0b74970f98b11f019001925370bb4 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 21 Sep 2023 22:20:13 +0200 Subject: ignore dot files for extract.py --- script/extract.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/extract.py b/script/extract.py index 2d78f81..526db92 100755 --- a/script/extract.py +++ b/script/extract.py @@ -59,6 +59,11 @@ class MyMaildir(Maildir): path.join(self._path, '.' + folder), factory=self._factory, create=False, ) + def _refresh(self): + super()._refresh() + for r in list(k for k in self._toc if k.startswith('.')): + del self._toc[r] + class QMAuthError(Exception): @@ -282,7 +287,7 @@ def _descent(xx): def raw_mail(f, subfolder, mid, path): if subfolder: f = f.get_folder(subfolder) - + msg = f.get(mid, None) if not msg: raise QMAuthError("no such message", mid=mid) -- cgit v1.2.3