mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 07:27:27 +08:00
fix: smtp_proxy: update raise imap4.NoSuchMailbox (#243)
This commit is contained in:
@@ -144,7 +144,7 @@ class Account(imap4.MemoryAccount):
|
|||||||
def _emptyMailbox(self, name, id):
|
def _emptyMailbox(self, name, id):
|
||||||
_logger.info(f"New mailbox: {name}, {id}")
|
_logger.info(f"New mailbox: {name}, {id}")
|
||||||
if name != "INBOX":
|
if name != "INBOX":
|
||||||
raise Exception("Mailbox not found")
|
raise imap4.NoSuchMailbox(name.encode("utf-8"))
|
||||||
return SimpleMailbox(self.password)
|
return SimpleMailbox(self.password)
|
||||||
|
|
||||||
def select(self, name, rw=1):
|
def select(self, name, rw=1):
|
||||||
|
|||||||
Reference in New Issue
Block a user