diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-12 15:46:14 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-12 15:46:14 +0200 |
commit | c08892e55d6ccf4b5759308835c0a4eda29c5213 (patch) | |
tree | 4af352dce74672c741ee87fecb705879eb186c94 /src/jwebmail/model | |
parent | 8faa2973a26818561d316c9eccd136bbf086546f (diff) |
fix json and raw formating for read
Diffstat (limited to 'src/jwebmail/model')
-rw-r--r-- | src/jwebmail/model/read_mails.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py index e35299f..769589f 100644 --- a/src/jwebmail/model/read_mails.py +++ b/src/jwebmail/model/read_mails.py @@ -69,7 +69,6 @@ class QMailAuthuser: "unread_mails": r.unread_count, } - # def show(self, folder, msgid): req = pb2.ShowReq(folder=folder, mid=msgid) resp = self.build_and_run("read", req.SerializeToString()) @@ -136,8 +135,8 @@ class QMailAuthuser: "reply_to": [cls._address(x) for x in h.reply_to if x], "to": [cls._address(x) for x in h.send_to if x], "subject": h.subject, - "comments": h.comments, - "keywords": h.keywords, + "comments": list(h.comments), + "keywords": list(h.keywords), "mime": cls._mime_header(h.mime), } |