IMAP: Ignore \Noselect mailboxes.

* They aren't selectable, so we can just hide them from the user.
* This should fix #12369.
This commit is contained in:
Axel Dörfler 2016-01-27 20:57:43 +01:00
parent c1ad6121ca
commit 7d6cefeb50

View File

@ -687,6 +687,14 @@ ListCommand::HandleUntagged(Response& response)
&& response.IsStringAt(3)) {
fSeparator = response.StringAt(2);
if (response.IsListAt(1)) {
// We're not supposed to select \Noselect mailboxes,
// so we'll just hide them
ArgumentList& attributes = response.ListAt(1);
if (attributes.Contains("\\Noselect"))
return true;
}
BString folder = response.StringAt(3);
if (folder == "")
return true;