summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-09-21 22:20:13 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-09-21 22:20:13 +0200
commit4ad8d09ad4d0b74970f98b11f019001925370bb4 (patch)
tree300b700577ffb23b32df4eea52bae82e409cf69a
parenta0d4300ee0945ef23bea48dfb53985a19eb6e951 (diff)
ignore dot files for extract.py
-rwxr-xr-xscript/extract.py7
1 files changed, 6 insertions, 1 deletions
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)