projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove useless things
[apps/madmutt.git]
/
mx.c
diff --git
a/mx.c
b/mx.c
index
2f127c1
..
d1534ea
100644
(file)
--- a/
mx.c
+++ b/
mx.c
@@
-44,8
+44,6
@@
#include <lib-crypt/crypt.h>
#include <lib-crypt/crypt.h>
-#include "lib/list.h"
-
static mx_t const *mxfmts[] = {
&mbox_mx,
&mmdf_mx,
static mx_t const *mxfmts[] = {
&mbox_mx,
&mmdf_mx,
@@
-1354,13
+1352,13
@@
int mx_rebuild_cache (void) {
CONTEXT* ctx = NULL;
BUFFY* b = NULL;
CONTEXT* ctx = NULL;
BUFFY* b = NULL;
- if (
list_empty(Incoming)
) {
+ if (
!Incoming.len
) {
mutt_error (_("No mailboxes defined."));
return (1);
}
mutt_error (_("No mailboxes defined."));
return (1);
}
- for (i = 0; i < Incoming
->length
; i++) {
- b =
(BUFFY*) Incoming->data
[i];
+ for (i = 0; i < Incoming
.len
; i++) {
+ b =
Incoming.arr
[i];
magic = mx_get_magic (b->path);
if (magic != M_MAILDIR && magic != M_MH && magic != M_IMAP)
continue;
magic = mx_get_magic (b->path);
if (magic != M_MAILDIR && magic != M_MH && magic != M_IMAP)
continue;