Hcache and colors
I normally use Maildir and the header cache without trouble. I
recently tried to use "color index" to change message colors, and
things immediately started to go wrong - I never figured out half of
it, but the most annoying was that even after I gave up on coloring
messages automatically, I still had a bunch of messages appear in
yellow and green.
This seems to do the trick. Is the pair really cached on purpose?
[I tried to report this on the bug tracker, but neither my old account
nor a new one have TICKET_CREATE permission, and there's no listed
support contact for Trac.]
--
Daniel Jacobowitz
CodeSourcery
---
hcache.c | 1 +
1 file changed, 1 insertion(+)
Index: mutt-debian/hcache.c
===================================================================
--- mutt-debian.orig/hcache.c 2009-12-10 15:12:30.000000000 -0500
+++ mutt-debian/hcache.c 2009-12-10 15:13:09.000000000 -0500
@@ -633,6 +633,7 @@ mutt_hcache_dump(header_cache_t *h, HEAD
#if defined USE_POP || defined USE_IMAP
nh.data = NULL;
#endif
+ nh.pair = 0;
memcpy(d + *off, &nh, sizeof (HEADER));
*off += sizeof (HEADER);