On Thu, Jul 23, 2009 at 01:34:38PM +0200, Rocco Rutte wrote:
> Hi,
> 
> * lee wrote:
> 
> > macro index .a "unmailboxes * ; mailboxes `mutt-mb -line ~/Mail`<enter>"
> > macro index .l "unmailboxes * ; mailboxes `mutt-mb -line 
> > ~/Mail/Lists`<enter>"
> 
> That's not how macros work. If you hit '.a', mutt will simulate you
> pressing the keys 'u', 'n', 'm', ... and so on. I.e. it does not issue
> 'unmailboxes *'. You need to tell it that a rc command is following like
> so:
> 
>       macro index .a '<enter-command>unmailboxes *<enter>...'
> 
> And you may also want to try to escape the backticks in the command
> because otherwise the command will be expanded at startup time and not
> execution time.

Thanks, that's exactly what I'm looking for!

Unfortunately, it doesn't work:


macro index .a "<enter-command>unmailboxes *<enter> ; \
                <enter-command>mailboxes \`mutt-mb -line 4 ~/Mail\`<enter>"


This seems to do the "unmailboxes" part, but not the second part of
it. Mutt says "key not bound" and displays the currently selected
mail instead.

Reply via email to