X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fimap.c;h=db9901a114ebc56957f94a72498c1a6562871570;hb=0667a943d2454ec20b069133861cd40ffe685819;hp=a59eb4bcda6a0f110e1bb7dd41493567130d11a9;hpb=5f6b586de5a46f2359a4fc392fd89f1716d847a3;p=apps%2Fmadmutt.git diff --git a/imap/imap.c b/imap/imap.c index a59eb4b..db9901a 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -214,7 +214,7 @@ int imap_read_literal (FILE * fp, IMAP_DATA * idata, long bytes, progress_t* bar 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 } @@ -1444,7 +1444,7 @@ int imap_subscribe (char *path, int subscribe) 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; }