Don't recheck subscriptions at every mailbox change, just the initial connection.
{
if (!ascii_strncasecmp (s, "\\NoSelect", 9))
return;
- if (*s != ')')
- s = imap_next_word (s);
+ while (s < ep && *s != ' ' && *s != ')')
+ s++;
+ if (*s == ' ')
+ s++;
} while (s != ep);
s = imap_next_word (s); /* delim */
CONNECTION* conn;
IMAP_DATA* idata;
ACCOUNT* creds;
+ int new = 0;
if (!(conn = mutt_conn_find (NULL, account)))
return NULL;
conn->data = idata;
idata->conn = conn;
+ new = 1;
}
if (idata->state == IMAP_DISCONNECTED)
FREE (&idata->capstr);
}
- if (idata->state == IMAP_AUTHENTICATED)
+ if (new && idata->state == IMAP_AUTHENTICATED)
{
imap_get_delim (idata);
if (option (OPTIMAPCHECKSUBSCRIBED))
** \fBDON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE
** DOING!\fP
*/
-#if USE_HCACHE
+#ifdef USE_HCACHE
{ "header_cache", DT_PATH, R_NONE, UL &HeaderCache, 0 },
/*
** .pp