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

Re: [Mutt] #3211: [-- Autoview using %s --] should have a format



#3211: [-- Autoview using %s --] should have a format string
--------------------------+-------------------------------------------------
  Reporter:  agriffis     |       Owner:  mutt-dev
      Type:  enhancement  |      Status:  new     
  Priority:  trivial      |   Milestone:          
 Component:  mutt         |     Version:          
Resolution:               |    Keywords:          
--------------------------+-------------------------------------------------

Comment(by Aron Griffis):

 {{{
 Gary Johnson wrote:  [Wed Apr 01 2009, 12:37:10PM EDT]

 Except this conflicts with

   color attachment brightblue default

 because the escape codes are passed to $display_filter.  Coloring
 can't be moved after display_filter because that would rely on
 regex matching rather than mutt's meta-knowledge "I'm printing an
 Autoview line now..."

 I ended up with this, which preserves the escape code at the
 beginning.

   set display_filter='sed -re '\''s/^([^ ]*|)(\[-- Autoview using
 [^[:blank:]]* ).*(--\])$/\1\2\3/'\'

 Thanks,
 Aron
 }}}

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