if (bar && !(pos % 1024))
mutt_progress_bar (bar, pos);
#ifdef DEBUG
- if (DebugLevel >= IMAP_LOG_LTRL)
+ if (DebugFile && DebugLevel >= IMAP_LOG_LTRL)
fputc (c, DebugFile);
#endif
}
BUFFER err, token;
IMAP_MBOX mx;
- if (mx_get_magic (path) == M_IMAP || imap_parse_path (path, &mx)) {
+ if (mx_get_magic (path) != M_IMAP || imap_parse_path (path, &mx) < 0) {
mutt_error (_("Bad mailbox name"));
return -1;
}