mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-11 18:10:01 +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):
|
||||
_logger.info(f"New mailbox: {name}, {id}")
|
||||
if name != "INBOX":
|
||||
raise Exception("Mailbox not found")
|
||||
raise imap4.NoSuchMailbox(name.encode("utf-8"))
|
||||
return SimpleMailbox(self.password)
|
||||
|
||||
def select(self, name, rw=1):
|
||||
|
||||
Reference in New Issue
Block a user