martinrusev / imbox

Python IMAP for Human beings
MIT License
1.18k stars 188 forks source link

Raise an error when folder selection is unsuccessful #242

Closed snowwm closed 3 months ago

snowwm commented 7 months ago

Fixes #38. Now, if you try to search a nonexistent folder, you get the error message that was returned by the mail server instead of a misleading message "command SEARCH illegal in state AUTH, only allowed in states SELECTED". My server returns "[NONEXISTENT] Folder not exists".

snowwm commented 3 months ago

Thanks :heart: