X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=complete.c;h=77cc11718a01d548caa50400771efbf424906658;hp=f26691e8c9cb0a6138e13075dad98e1d54f59e42;hb=105e395f06e15f2c3878d856bc278dd2cf971794;hpb=0f44dc85fc1280372ffab911d701e703d803fb4b diff --git a/complete.c b/complete.c index f26691e..77cc117 100644 --- a/complete.c +++ b/complete.c @@ -13,7 +13,7 @@ #include "mutt.h" #ifdef USE_IMAP -#include "mailbox.h" +#include "mx.h" #include "imap.h" #endif #ifdef USE_NNTP @@ -21,6 +21,7 @@ #endif #include "lib/str.h" +#include "lib/debug.h" #include #include @@ -47,7 +48,7 @@ int mutt_complete (char *s, size_t slen) char imap_path[LONG_STRING]; #endif - dprint (2, (debugfile, "mutt_complete: completing %s\n", s)); + debug_print (2, ("completing %s\n", s)); #ifdef USE_NNTP if (option (OPTNEWS)) { @@ -112,7 +113,7 @@ int mutt_complete (char *s, size_t slen) else strfcpy (imap_path, s, sizeof (imap_path)); - if (mx_is_imap (imap_path)) + if (mx_get_magic (imap_path) == M_IMAP) return imap_complete (s, slen, imap_path); #endif @@ -167,9 +168,7 @@ int mutt_complete (char *s, size_t slen) } if (dirp == NULL) { - dprint (1, - (debugfile, "mutt_complete(): %s: %s (errno %d).\n", exp_dirpart, - strerror (errno), errno)); + debug_print (1, ("%s: %s (errno %d).\n", exp_dirpart, strerror (errno), errno)); return (-1); }