Re: Maildir header cache now supports imap, too
* Thomas Glanzmann [Fri, 16 Jul 2004 09:13:41 +0200]:
> The documentation on my website is obsolete. To test the patch use CVS
> head, or the versions mentioned on my website and apply the patch, which
> can be found here[2]. After patching run ./prepare and
> [2] imap *and* maildir header cache
>
> http://wwwcip.informatik.uni-erlangen.de/~sithglan/mutt/mutt-cvs-header-cache.1
hi, the patch has three minor errors fixed in the attached patch. they
make it fail to apply & compile, so it's odd nobody's complained (but perhaps
there is a newer version i am unaware of).
hoping this gets included upstream some day,
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
It is impossible to make anything foolproof because fools are so ingenious.
--- mutt-cvs-header-cache.1 2004-07-18 05:28:55.000000000 +0200
+++ mutt-cvs-header-cache.1-2asp 2004-07-18 06:48:30.000000000 +0200
@@ -1,10 +1,11 @@
diff -Nru a/Makefile.am b/Makefile.am
--- a/Makefile.am 2004-07-15 13:24:10 +02:00
+++ b/Makefile.am 2004-07-15 13:24:10 +02:00
-@@ -62,7 +62,7 @@
- mutt_tunnel.c pop.c pop_auth.c pop_lib.c smime.c pgp.c pgpinvoke.c
pgpkey.c \
- pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c \
- browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c \
+@@ -62,8 +62,8 @@
+ mutt_tunnel.c pop.c pop_auth.c pop_lib.c smime.c pgp.c pgpinvoke.c
pgpkey.c \
+ pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c \
+ browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c \
+ crypt-mod-pgp-classic.c crypt-mod-smime-classic.c \
- pgppacket.c mutt_idna.h
+ pgppacket.c mutt_idna.h hcache.c
@@ -696,7 +697,7 @@
+
+ if (stat(path, &sb) != 0 && errno == ENOENT) {
+ createflags |= DB_EXCL;
-+ h->db->set_pagesize(h->db, (int) MaildirCachePageSize);
++ h->db->set_pagesize(h->db, (int) HeaderCachePageSize);
+ }
+
+ ret = h->db->open(h->db, NULL, path, folder, DB_BTREE, createflags,
0600);
@@ -739,7 +740,7 @@
+
+ filename++; /* skip '/' */
+
-+ mutt_hcache_dbt_init(&key, (void *) filename, keylen(filname));
++ mutt_hcache_dbt_init(&key, (void *) filename, keylen(filename));
+ mutt_hcache_dbt_empty_init(&data);
+ data.flags = DB_DBT_MALLOC;
+