From 59af8165dd3b4fe2453ae4e88a57d0711db5b373 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 14 Mar 2024 22:50:38 +0100 Subject: mark read mails as such and correctly add root folder --- src/jwebmail/model/read_mails.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/jwebmail/model') diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py index 8ba3c67..e9b6800 100644 --- a/src/jwebmail/model/read_mails.py +++ b/src/jwebmail/model/read_mails.py @@ -99,10 +99,7 @@ class QMailAuthuser: resp = self.build_and_run("folders", pb2.FoldersReq().SerializeToString()) result = pb2.FoldersResp() result.ParseFromString(resp) - res = result.folders - if isinstance(res, list): - return [""] + res - return res + return list(result.folders) + [""] def move(self, mid, from_f, to_f): req = pb2.MoveReq(mid=mid, from_f=from_f, to_f=to_f) -- cgit v1.2.3