Python Imaplib Selecting Folders
I am bulding a mail client using Django and for extracting emails i'm using imaplib. So far, i can select inbox folder cause in every imap server it's name is 'INBOX'. But when it
Solution 1:
I decided to split the output and use folder names as they are, in the language they came:
for i in mail.list()[1]:
l = i.decode().split(' "/" ')
print(l[0] + " = " + l[1])
Post a Comment for "Python Imaplib Selecting Folders"