#3723: Message fetched if `color index blue red "~h 'Importance: high'"` is in
place
---------------------+------------------------------------------
  Reporter:  ManDay  |      Owner:  brendan
      Type:  defect  |     Status:  new
  Priority:  major   |  Milestone:
 Component:  IMAP    |    Version:  1.5.23
Resolution:          |   Keywords:  color header message fetched
---------------------+------------------------------------------

Comment (by kevin8t8):

 It's not easy to make that change.  The api calls to do that are not
 there.  ~b ~B and ~h all read in the whole message.  Using them for index
 coloring even locally isn't a great idea.  Even if ~h could somehow be
 changed to just pull down the headers for IMAP, the performance still
 wouldn't be good.

 Let me suggest another workaround that may help you right now:
 {{{
 set imap_headers="importance"
 spam "(importance):\\s*(.*)" "%1:%2"
 color index brightred default "~H 'importance:high'"
 }}}

 imap_headers are currently only usable for spam tagging.  After that, they
 are discarded.

 If you aren't currently using spam tagging, you can hijack it and store
 importance flags there.
 This adds importance to imap_headers and then tags messages with that
 header. The tag (right hand side of the spam command) is then matchable
 using ~H.

 Hope that helps.

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

Reply via email to