#include "mutt.h"
#ifdef USE_IMAP
-#include "mailbox.h"
+#include "mx.h"
#include "imap.h"
#endif
#ifdef USE_NNTP
#endif
#include "lib/str.h"
+#include "lib/debug.h"
#include <dirent.h>
#include <string.h>
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)) {
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
}
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);
}