<<< Date Index >>>     <<< Thread Index >>>

Re: specifying generic save-hook



On 06/04/04 15.14, Stewart V. Wright wrote:
> G'day Chris,
> 
> * Chris Grossmann <chris@xxxxxxxxxxxx> [040406 14:49]:
> > >   fcc-save-hook   ~A      +People/%O.gz
> > 
> > If so, I don't know how to do it.
> > 
> > I want to save messages from "user@xxxxxxxxxxx" into the
> > folder "=company".
[snip]
> I tried seeing if you can shell-escape some trick.  The following
> command won't work however as the %f is only replaced _after_ the
> shell-escape is executed...
>    fcc-save-hook ~A +Companies/`echo "%f"|sed 's/^.<//g'`
> So in this case the sed acts on "%f" not on the replaced value of %f.
> :(

Take a look at http://home.uchicago.edu/~dgc/mutt/#fmtpipe it might be
just the ticket. It allows format strings to invoke an external
command with the expanded values as arguments.

/dossen
-- 
Common sense is the collection of prejudices acquired by age eighteen.
                -- Albert Einstein

Attachment: pgpcQh1RrYCJk.pgp
Description: PGP signature