#include "lib/debug.h"
#include "mutt.h"
+#include "ascii.h"
+#include "enter.h"
#include "imap_private.h"
/* -- forward declarations -- */
short showparents = 0;
int noselect;
int noinferiors;
+ int save_lsub;
IMAP_MBOX mx;
if (imap_parse_path (path, &mx)) {
return -1;
}
+ save_lsub = option (OPTIMAPCHECKSUBSCRIBED);
+ unset_option (OPTIMAPCHECKSUBSCRIBED);
strfcpy (list_cmd, option (OPTIMAPLSUB) ? "LSUB" : "LIST",
sizeof (list_cmd));
}
}
+ 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;
}