diff options
Diffstat (limited to 'src/jwebmail/model/read_mails.py')
-rw-r--r-- | src/jwebmail/model/read_mails.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py index 769589f..633c358 100644 --- a/src/jwebmail/model/read_mails.py +++ b/src/jwebmail/model/read_mails.py @@ -114,6 +114,13 @@ class QMailAuthuser: r.ParseFromString(resp) return True + def add_folder(self, name): + req = pb2.AddFolderReq(name=name) + resp = self.build_and_run("add_folder", req.SerializeToString()) + r = pb2.AddFolderResp() + r.ParseFromString(resp) + return r.status + @staticmethod def _address(addr): if not addr: |