<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3377: Index colors messed up when header cache is turned on



#3377: Index colors messed up when header cache is turned on
--------------------+-------------------------------------------------------
 Reporter:  mivok   |       Owner:  mutt-dev
     Type:  defect  |      Status:  new     
 Priority:  minor   |   Milestone:          
Component:  mutt    |     Version:  1.5.20  
 Keywords:          |  
--------------------+-------------------------------------------------------
 When the header cache is turned on, and custom index colors are used,
 often the colors displayed in the index are incorrect. The usual symptom
 is that another color definition shows up for 'normal' emails.

 It seems to be somewhat sensitive to which mails are in the mailbox, and
 the
 colors defined, so coming up with a reliable test case is difficult. I was
 able to trigger it when changing my colors around and having several color
 definitions set.

 The colors do not seem to follow any pattern, and the issue went away if I
 turned off header caching. I was able to fix the issue by forcing h->pair
 to
 be 0 in the header cache restore function after the data was loaded back
 in
 from the cache, and have attached a patch to do this.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3377>
Mutt <http://www.mutt.org/>
The Mutt mail user agent