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:
parent
c1ad6121ca
commit
7d6cefeb50
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user