clemensF <[EMAIL PROTECTED]> wrote on Mon, 05 Jun 2000:
> > Actually, you could embed `mkdir -p <dirname>` in any command -- it gets
> > expanded but the result is an empty string. However the command does
> > run. :-)
>
> whowherewhat? where are commands like this allowed like this?
In things where you're specifying a string. Like, for instance,
save-hooks...
You can also embed them in pretty much anywhere, and as long as the
evaluated result makes sense for Mutt in the parsing context, it'll
be used just like you'd expect. You could have a folder-hook where
the Mutt-command-to-execute is created on-the-fly with a ``-style
command. (But there isn't any way to pass the current folder name
as a parameter for the ``-command, unfortunately..) You just need
to be careful with quoting to get the command execute at folder-hook
execution and *not* when the .muttrc is loaded.
Regards,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
By "recursion" I mean "defined by recursion".