I've been receiving reports of occasional thread sorting crashes. I believe that these may all occur when we are incrementally resorting the mailbox, though I don't know for sure, and have been totally unable to reproduce the problem myself. I will be travelling and unable to work more on this until January, however, so I thought I would toss out this patch, which I hope will turn out to be an effective temporary workaround. The only harm it can do is slow down resorting when new mail arrives, but even so that will still be dramatically faster, in many cases, than the old threading code. I will track down the real problem (if nobody beats me to it) and reenable the incremental sorting when I get back.
-Daniel -- Daniel E. Eisenbud [EMAIL PROTECTED] "We should go forth on the shortest walk perchance, in the spirit of undying adventure, never to return,--prepared to send back our embalmed hearts only as relics to our desolate kingdoms." --Henry David Thoreau, "Walking"
diff -durp mutt-1.3.24/sort.c mutt-1.3.24.working/sort.c --- mutt-1.3.24/sort.c Mon Nov 12 04:53:54 2001 +++ mutt-1.3.24.working/sort.c Wed Dec 12 18:54:23 2001 @@ -181,6 +181,7 @@ void mutt_sort_headers (CONTEXT *ctx, in THREAD *thread, *top; sort_t *sortfunc; + init = 1; /* XXX temporary bug workaround (hopefully!) */ unset_option (OPTNEEDRESORT); if (!ctx)