I'm trying to find out if the IMAP search command works (using args: "unseen all" ) by looking at all the folders in the mailbox or only the currently selected folder?
those. when selecting INBOX and issuing the search command, it does not find any new messages.
a select "INBOX"
* 383 EXISTS
* 0 RECENT
[...]
a search unseen all
* SEARCH
a OK Success
But when I go to the folder with the new message, it works:
a select "inbox / test1 / test2"
[...]
a uid search unseen all
* SEARCH 7 8 9
He discovers three new messages, which is true. So my question is: is this behavior right? Shouldn't search unseen all search all folders for new messages?
source share