How can I write * in messages_folder = imbox.messages(folder='*')
messages_folder = imbox.messages(folder='Social')
output:
('OK', [b'() "/" "INBOX"', b'(\Drafts) "/" "&g0l6P3ux-"', b'(\Sent) "/" "&XfJT0ZAB-"', b'(\Trash) "/" "&XfJSIJZk-"', b'(\Junk) "/" "&V4NXPpCuTvY-"', b'() "/" "&dcVr0mWHTvZZOQ-"', b'() "/" "xiaoshuo"', b'() "/" "moive"', b'() "/" "others"', b'() "/" "Sent"'])
The question is How can I write * in messages_folder = imbox.messages(folder='*') to select folder
Are you trying to select all folders? It depends on the IMAP provider. With Gmail, "[Gmail/All Mail]" will work (including the double quotes.
@zevaverbach Is there a list of folder names that we can reference? When i query via imbox.folders(), i get bunch of odd folder names like:
(\HasNoChildren) "/" "INBOX"