projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split ml_core into MCore and MTransport modules.
[apps/madmutt.git]
/
lib-mx
/
mh.c
diff --git
a/lib-mx/mh.c
b/lib-mx/mh.c
index
7225ccc
..
9108ed5
100644
(file)
--- a/
lib-mx/mh.c
+++ b/
lib-mx/mh.c
@@
-1431,7
+1431,7
@@
static int maildir_check_mailbox (CONTEXT * ctx, int *index_hint, int unused __a
struct maildir *md; /* list of messages in the mailbox */
struct maildir **last, *p;
int i;
struct maildir *md; /* list of messages in the mailbox */
struct maildir **last, *p;
int i;
-
HASH
*fnames; /* hash table for quickly looking up the base filename
+
hash_t
*fnames; /* hash table for quickly looking up the base filename
for a maildir message */
if (!option (OPTCHECKNEW))
for a maildir message */
if (!option (OPTCHECKNEW))
@@
-1472,12
+1472,12
@@
static int maildir_check_mailbox (CONTEXT * ctx, int *index_hint, int unused __a
* of each message we scanned. This is used in the loop over the
* existing messages below to do some correlation.
*/
* of each message we scanned. This is used in the loop over the
* existing messages below to do some correlation.
*/
- fnames = hash_
create (1031
);
+ fnames = hash_
new (1031, 0
);
for (p = md; p; p = p->next) {
maildir_canon_filename (buf, p->h->path, sizeof (buf));
p->canon_fname = m_strdup(buf);
for (p = md; p; p = p->next) {
maildir_canon_filename (buf, p->h->path, sizeof (buf));
p->canon_fname = m_strdup(buf);
- hash_insert (fnames, p->canon_fname, p
, 0
);
+ hash_insert (fnames, p->canon_fname, p);
}
/* check for modifications and adjust flags */
}
/* check for modifications and adjust flags */
@@
-1530,7
+1530,7
@@
static int maildir_check_mailbox (CONTEXT * ctx, int *index_hint, int unused __a
}
/* destroy the file name hash */
}
/* destroy the file name hash */
- hash_de
stroy
(&fnames, NULL);
+ hash_de
lete
(&fnames, NULL);
/* If we didn't just get new mail, update the tables. */
if (occult)
/* If we didn't just get new mail, update the tables. */
if (occult)
@@
-1564,7
+1564,7
@@
static int mh_check_mailbox (CONTEXT * ctx, int *index_hint, int unused __attrib
struct maildir *md, *p;
struct maildir **last = NULL;
struct mh_sequences mhs;
struct maildir *md, *p;
struct maildir **last = NULL;
struct mh_sequences mhs;
-
HASH
*fnames;
+
hash_t
*fnames;
int i;
if (!option (OPTCHECKNEW))
int i;
if (!option (OPTCHECKNEW))
@@
-1610,10
+1610,10
@@
static int mh_check_mailbox (CONTEXT * ctx, int *index_hint, int unused __attrib
mhs_free_sequences (&mhs);
/* check for modifications and adjust flags */
mhs_free_sequences (&mhs);
/* check for modifications and adjust flags */
- fnames = hash_
create (1031
);
+ fnames = hash_
new (1031, 0
);
for (p = md; p; p = p->next)
for (p = md; p; p = p->next)
- hash_insert (fnames, p->h->path, p
, 0
);
+ hash_insert (fnames, p->h->path, p);
for (i = 0; i < ctx->msgcount; i++) {
ctx->hdrs[i]->active = 0;
for (i = 0; i < ctx->msgcount; i++) {
ctx->hdrs[i]->active = 0;
@@
-1633,7
+1633,7
@@
static int mh_check_mailbox (CONTEXT * ctx, int *index_hint, int unused __attrib
/* destroy the file name hash */
/* destroy the file name hash */
- hash_de
stroy
(&fnames, NULL);
+ hash_de
lete
(&fnames, NULL);
/* If we didn't just get new mail, update the tables. */
if (occult)
/* If we didn't just get new mail, update the tables. */
if (occult)