Hello,

On Tue, Nov 19, 2013 at 04:57:22PM -0600, rlhar...@oplink.net wrote:
> >>
> >>    "%4C %Z %?X?@& ? %{%b %d} %-15.15n (%?M?ยป%3M&%4c?) %s"
> >>
> > This is fantastic. This answers my question, before I had time to ask
> > it. Could you please describe how this works: "%?X?@& ?"
> 
> Those are string formatting directives.

To be more verbose, it is a conditional expando.  ? and & are the
delimiters: %?<condition>?<if-true>&<else>?  I want it to be conditional
on X, so it goes first; if there is an attachment show @, a blank space
otherwise.  Without the blank space, my subject lines in the index would
be misalligned depending on if there are attachments or not.

> 
> First of all, you need to be searching the Mutt manual as a matter of
> routine.  Open a browser such as Firefox or Iceweasel, and use the browser
> to open the file /usr/share/doc/mutt/html/index.html .  Then from the EDIT
> menu of the browser click FIND to open the string search window.

Or do it from mutt!  I use the following:

macro index,pager,postpone,compose,query,browser <F1> "<shell-escape>less 
/usr/share/doc/mutt-kz-1.5.22/manual.txt<enter>" "Show Mutt documentation"
macro index,pager,postpone,compose,query,browser <F2> "<shell-escape>less 
/usr/share/doc/mutt-kz-1.5.22/README.notmuch<enter>" "Secondary help"

PS: I use the mutt fork mutt-kz.

-- 
Suvayu

Open source is the future. It sets us free.

Reply via email to