Re: how to prevent external commands from being substituted in

2009-07-25 Thread lee
On Fri, Jul 24, 2009 at 10:53:32PM -0700, Brandon Sandrowicz wrote: > > macro index .a "unmailboxes * \ > > mailboxes \`mutt-mb -line 4 > > ~/Mail\`" > > It's the space that you have in there. That space is just like you > hitting the space bar while sitting in the index (sinc

Re: how to prevent external commands from being substituted in

2009-07-24 Thread Brandon Sandrowicz
On Fri, Jul 24, 2009 at 10:13:40PM -0600, lee wrote: > On Sat, Jul 25, 2009 at 12:04:12PM +1000, Cameron Simpson wrote: > > > Get rid of the semicolon and retry. Mutt aborts macros when something > > goes wrong, which was probably the semicolon. Remember, the macro is as > > if you have _typed_ it

Re: how to prevent external commands from being substituted in

2009-07-24 Thread lee
On Sat, Jul 25, 2009 at 12:04:12PM +1000, Cameron Simpson wrote: > Get rid of the semicolon and retry. Mutt aborts macros when something > goes wrong, which was probably the semicolon. Remember, the macro is as > if you have _typed_ it all. There's no semicolon needed before the next thing > you t

Re: how to prevent external commands from being substituted in

2009-07-24 Thread Cameron Simpson
On 24Jul2009 15:44, lee wrote: | On Thu, Jul 23, 2009 at 01:34:38PM +0200, Rocco Rutte wrote: | > 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 comman

Re: how to prevent external commands from being substituted in

2009-07-24 Thread lee
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`" > > macro index .l "unmailboxes * ; mailboxes `mutt-mb -line > > ~/Mail/Lists`" > > That's not how macros work. If you hit '.a', mutt will

Re: how to prevent external commands from being substituted in

2009-07-23 Thread Rocco Rutte
Hi, * lee wrote: > macro index .a "unmailboxes * ; mailboxes `mutt-mb -line ~/Mail`" > macro index .l "unmailboxes * ; mailboxes `mutt-mb -line ~/Mail/Lists`" 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 issu

how to prevent external commands from being substituted in macro definitions

2009-07-22 Thread lee
Hi, how do I prevent external commands from being processed when mutt is parsing a macro definition in ~/.muttrc? What I'm trying to do is: macro index .a "unmailboxes * ; mailboxes `mutt-mb -line ~/Mail`" macro index .l "unmailboxes * ; mailboxes `mutt-mb -line ~/Mail/Lists`" This gets substi