]> granicus.if.org Git - neomutt/commitdiff
Do not subscribe to \noselect mailboxes. Closes #3445
authorBrendan Cully <brendan@kublai.com>
Sun, 26 Jun 2011 03:05:37 +0000 (20:05 -0700)
committerBrendan Cully <brendan@kublai.com>
Sun, 26 Jun 2011 03:05:37 +0000 (20:05 -0700)
imap/command.c

index 3330d989c52bfe540fc61fdad420f6ca8e08e36d..6d4eda0396ef8e15cf46c923953089af9b86f46a 100644 (file)
@@ -762,7 +762,8 @@ static void cmd_parse_lsub (IMAP_DATA* idata, char* s)
   idata->cmddata = &list;
   cmd_parse_list (idata, s);
   idata->cmddata = NULL;
-  if (!list.name)
+  /* noselect is for a gmail quirk (#3445) */
+  if (!list.name || list.noselect)
     return;
 
   dprint (3, (debugfile, "Subscribing to %s\n", list.name));