imbox icon indicating copy to clipboard operation
imbox copied to clipboard

How can I write * in messages_folder = imbox.messages(folder='*')

Open lightjl opened this issue 8 years ago • 2 comments

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

lightjl avatar Jul 24 '17 15:07 lightjl

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 avatar Jul 27 '18 12:07 zevaverbach

@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"

taewookim avatar Mar 02 '20 16:03 taewookim