On Thu, Oct 17, 2002 at 05:10:17PM +0200, Ren? Clerc wrote: > * Susan Kleinmann <[EMAIL PROTECTED]> [17-10-2002 17:08]: > > > I am trying to figure out how to get mutt to execute some command specified > > on the command line and then quit. This first effort is just to get mutt to > > provide an index listing of new messages in a folder and then quit. > > To do that, I defined the following macro in my muttrc: > > > > macro index ,n "<limit>~N\n<quit>\n" > > > > Then I invoked mutt with the command: > > > > mutt -e "exec ,n" > > > > This produces the message: > > ,n: no such function > > Error in command line: > > Press any key to continue... > > Apart from what would be the use of this, you shouldn't "exec" the > macro (because exec applies to functions only, as the error message > says), but you should "push" the key sequence. > ... quote from manual - "``exec function'' is equivalent to ``push <function>''." I certainly found this a bit confusing as it (at least initially) seems to imply that exec is an alias for push. I now understand exec is specifically for functions. However one then has to ask - what is the point of exec?
-- Chris Green ([EMAIL PROTECTED])