Hi,

* Elimar Riesebieter [05-11-24 20:48:26 +0100] wrote:
On Fri, 18 Nov 2005 the mental interface of
Gerhard Brauer told:

[...]
mutt-ng (and mutt) has a nice (patched?) feature to do a correct
List reply even the mailbox is not defined as "list" or subscribe
by looking at relevant header vars.

Wrong! Lists have to be defined in lists or subscribe.

Nope. Grep for 'ist-Post' (yes, not 'List-Post' but 'ist-Post'.)

On my backported mutt-ng on sarge there is a inconsistency when i
use the maildir header cache. As a example:

I delete the header cache for debian-user-german mailbox. Then i
start mutt-ng, go to this mailbox. Pressing <L> does a correct
list reply to the list. When now switch to a other list (or close
muttng) and come back (and the header cache does it work) then
List reply (<L>) doesn't work anymore, it says (similar): Not a
mailing list.

Maybe 'cause the list isn't defined neither in lists nor in
subscribe?

No. The point is: the header caching doesn't seem to store the List-Post header. Thus, when there's no header cache available, all headers are fetched including List-Post:. When reading from cache where the header isn't saved/restored, it looks like no List-Post: was there in the original message. Thus it fails.

See the attached patch which works here like a charm (why shouldn't it ;-)

  bye, Rocco
--
:wq!
Index: hcache.c
===================================================================
--- hcache.c    (revision 597)
+++ hcache.c    (working copy)
@@ -14,7 +14,7 @@
 
 #ifdef USE_HCACHE
 
-#define MUTTNG_HCACHE_ID        "0x003"
+#define MUTTNG_HCACHE_ID        "0x004"
 
 # if HAVE_INTTYPES_H
 #  include <inttypes.h>
@@ -376,6 +376,7 @@
   d = dump_char (e->supersedes, d, off);
   d = dump_char (e->date, d, off);
   d = dump_char (e->x_label, d, off);
+  d = dump_char (e->list_post, d, off);
 
 #ifdef USE_NNTP
   d = dump_char (e->newsgroups, d, off);
@@ -416,7 +417,8 @@
   restore_char (&e->supersedes, d, off);
   restore_char (&e->date, d, off);
   restore_char (&e->x_label, d, off);
-  
+  restore_char (&e->list_post, d, off);
+
 #ifdef USE_NNTP
   restore_char (&e->newsgroups, d, off);
   restore_char (&e->xref, d, off);

Reply via email to