mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
remove wrong inbox folders
This commit is contained in:
@@ -140,8 +140,8 @@ class ImapConn:
|
|||||||
typ, data = c.fetch(num, '(UID FLAGS)')
|
typ, data = c.fetch(num, '(UID FLAGS)')
|
||||||
info = data[0]
|
info = data[0]
|
||||||
|
|
||||||
path = pathlib.Path(dir).joinpath("IMAP-MESSAGES", acinfo, imapfolder)
|
path = pathlib.Path(dir.strpath).joinpath("IMAP-MESSAGES", acinfo, imapfolder)
|
||||||
path.mkdir(parents=True, exist_ok=True)
|
path.mkdir(parents=True, exist_ok=True)
|
||||||
file = path.joinpath(str(info).replace("b'", "").replace("'", "").replace("\\", ""))
|
fn = path.joinpath(str(info).replace("b'", "").replace("'", "").replace("\\", ""))
|
||||||
file.write_bytes(body)
|
fn.write_bytes(body)
|
||||||
log("Message", info, "saved as", file)
|
log("Message", info, "saved as", fn)
|
||||||
|
|||||||
@@ -1707,6 +1707,7 @@ class TestGroupStressTests:
|
|||||||
ac1.shutdown()
|
ac1.shutdown()
|
||||||
ac2.shutdown()
|
ac2.shutdown()
|
||||||
ac3.shutdown()
|
ac3.shutdown()
|
||||||
|
assert 0
|
||||||
|
|
||||||
|
|
||||||
class TestOnlineConfigureFails:
|
class TestOnlineConfigureFails:
|
||||||
|
|||||||
Reference in New Issue
Block a user