diff options
-rwxr-xr-x | script/extract.py | 7 |
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) |