clemensF <[EMAIL PROTECTED]> wrote on Mon, 24 Jul 2000:
> what would be the best way to take ifiles output and "program" the folder
> name to be used for a save-operation?  it's very easy to get at the first
> word of the first line, that's one line of sh(1), but this result would
> have to be the argument of the 's'ave!

The only way I can think of that could make this work is to create
a macro and an external script.

The macro pipes the current message to the script, which runs ifile
and then checks the output for the folder to save into.  Then the script
creates a very minimal muttrc-style file in /tmp (or wherever) with the
command: "push <save-message>FOLDERNAME<enter>".  After this the script
is done, and the macro continues by sourcing that temporary muttrc-file
(and then possibly deleting it after done, or maybe the file itself can
do that when sourced).

Somewhat complex and kludgey, but doable.


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 /
The death rate on Earth is: .... (computing) .... One per person.

Reply via email to