projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no more list2_t for mx's anymore either.
[apps/madmutt.git]
/
imap
/
imap.c
diff --git
a/imap/imap.c
b/imap/imap.c
index
9f356ba
..
e426e33
100644
(file)
--- a/
imap/imap.c
+++ b/
imap/imap.c
@@
-11,14
+11,7
@@
/* Support for IMAP4rev1, with the occasional nod to IMAP 4. */
/* Support for IMAP4rev1, with the occasional nod to IMAP 4. */
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <lib-lib/mem.h>
-#include <lib-lib/ascii.h>
-#include <lib-lib/str.h>
-#include <lib-lib/buffer.h>
+#include <lib-lib/lib-lib.h>
#include "mutt.h"
#include "mx.h"
#include "mutt.h"
#include "mx.h"
@@
-32,15
+25,6
@@
#endif
#include "buffy.h"
#endif
#include "buffy.h"
-#include <lib-lib/macros.h>
-
-#include <unistd.h>
-#include <ctype.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
/* imap forward declarations */
static int imap_get_delim (IMAP_DATA * idata);
static char *imap_get_flags (string_list_t ** hflags, char *s);
/* imap forward declarations */
static int imap_get_delim (IMAP_DATA * idata);
static char *imap_get_flags (string_list_t ** hflags, char *s);
@@
-73,7
+57,7
@@
int imap_access (const char *path, int flags __attribute__ ((unused)))
imap_fix_path (idata, mx.mbox, mailbox, sizeof (mailbox));
/* we may already be in the folder we're checking */
imap_fix_path (idata, mx.mbox, mailbox, sizeof (mailbox));
/* we may already be in the folder we're checking */
- if (!
ascii
_strcmp(idata->mailbox, mx.mbox)) {
+ if (!
m
_strcmp(idata->mailbox, mx.mbox)) {
p_delete(&mx.mbox);
return 0;
}
p_delete(&mx.mbox);
return 0;
}
@@
-1559,7
+1543,7
@@
int imap_complete (char *dest, size_t dlen, char *path) {
completions++;
}
}
completions++;
}
}
- while (
ascii_strncmp
(idata->cmd.seq, idata->cmd.buf, SEQLEN));
+ while (
m_strncmp
(idata->cmd.seq, idata->cmd.buf, SEQLEN));
if (completions) {
/* reformat output */
if (completions) {
/* reformat output */