mail = imaplib.IMAP4_SSL(IMAP_HOST) mail.login(LOGIN, PASSWORD) folders = mail.list() print(folders) mail.select(FOLDER) result, data = mail.search(None, 'ALL') print(result) print(data)
(Aug-11-2017, 11:32 AM)new2py Wrote: Instead, it scans the folder called employment.
(Aug-08-2017, 06:01 AM)buran Wrote: Actually it is looking for folder EMPLOYMENT in your mailbox and should search emails in this folder.