summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-03-14 22:50:38 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-03-14 22:50:38 +0100
commit59af8165dd3b4fe2453ae4e88a57d0711db5b373 (patch)
tree168cc7d6ff6dff0a96abce6279f53817d3a752ee /script
parentbb003d1fd75eb1cfcb8863a2474705acee342d66 (diff)
mark read mails as such and correctly add root folder
Diffstat (limited to 'script')
-rwxr-xr-xscript/extract.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/extract.py b/script/extract.py
index 5bbbec8..9cd810b 100755
--- a/script/extract.py
+++ b/script/extract.py
@@ -314,6 +314,8 @@ def read_mail(f, req):
if not msg:
raise QMAuthError("no such message", mid=r.mid)
+ msg.add_flag('S')
+
res = jwebmail.Mail(
head=_get_head_info(msg),
body=_get_body(msg),