On 24Jul2009 15:44, lee <l...@yun.yagibdah.de> 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 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.

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 type:-)

Cheers,
-- 
Cameron Simpson <c...@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

I couldn't think of anything else to do with it, so I put it on the web.

Reply via email to