mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix #1720 -- don't wait for the daemon eventhread to terminate but count on it to eventually die
This commit is contained in:
@@ -162,6 +162,10 @@ class DirectImap:
|
||||
requested = [b'BODY.PEEK[HEADER]', FLAGS]
|
||||
for uid, data in self.conn.fetch(messages, requested).items():
|
||||
body_bytes = data[b'BODY[HEADER]']
|
||||
if not body_bytes:
|
||||
log("Message", uid, "has empty body")
|
||||
continue
|
||||
|
||||
flags = data[FLAGS]
|
||||
path = pathlib.Path(str(dir)).joinpath("IMAP", self.logid, imapfolder)
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user