X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fbrowse.c;h=1410829459698a51823acbf6b6eea8b0fdfcec2c;hp=0f23e2190ec0a7767985c9a7259c43fbe4614ea2;hb=be393b838c5e0b8dfe9bedcc7a4a63f05caae7c4;hpb=841a368ddea400022328f35dd8c7a3eb6f543892 diff --git a/imap/browse.c b/imap/browse.c index 0f23e21..1410829 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -60,6 +60,7 @@ int imap_browse (char *path, struct browser_state *state) short showparents = 0; int noselect; int noinferiors; + int save_lsub; IMAP_MBOX mx; if (imap_parse_path (path, &mx)) { @@ -67,6 +68,8 @@ int imap_browse (char *path, struct browser_state *state) return -1; } + save_lsub = option (OPTIMAPCHECKSUBSCRIBED); + unset_option (OPTIMAPCHECKSUBSCRIBED); strfcpy (list_cmd, option (OPTIMAPLSUB) ? "LSUB" : "LIST", sizeof (list_cmd)); @@ -223,10 +226,15 @@ int imap_browse (char *path, struct browser_state *state) } } + if (save_lsub) + set_option (OPTIMAPCHECKSUBSCRIBED); + mem_free (&mx.mbox); return 0; fail: + if (save_lsub) + set_option (OPTIMAPCHECKSUBSCRIBED); mem_free (&mx.mbox); return -1; }