try to cleanup under INBOX too (altnamespace = no)

pull/12/head
Jean Raby 2013-04-18 14:15:35 -04:00
parent 96c831f726
commit 353f40ac3e
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ def imapCleanup(imaphost, imapport, username, userpass):
client.logout()
return
for foldername in ("Sync Issues", "Junk E-mail"):
for foldername in ("Sync Issues", "Junk E-mail",
"INBOX%sSync Issues" % sep, "INBOX%sJunk E-mail" % sep):
(code, data) = client.list(foldername, "%")
if code == "OK":
for si in data: