Re: use current folder name as argument to abitrary command
David J. Weller-Fahy <dave-lists-mutt-users <at> weller-fahy.com>
2009-05-02 19:55:19 GMT
* Noah Sheppard <nhsheppard <at> taylor.edu> [2009-05-02 01:56 -0500]:
> On Fri, May 01, 2009 at 11:28:39PM -0500, David J. Weller-Fahy wrote:
> > Right now everything works except from never gets set. I thought
> > this might be because of the timing (source happening before the
> > link is created), so I added a 0.5 second sleep after "list-from"
> > generation. Adding the sleep did not fix the problem from never
> > gets set because the source command runs before the shell finishes
> > creating the link, but I'm not sure.
>
> Hmm, I implemented a similar thing, and it worked correctly (thanks
> for suggesting the whole using a script to write a mutt command to a
> file and then sourcing it, since I hadn't gotten that far before).
You're welcome, I'm glad it works for you. My initial attempt was to
have a script which would use the filename of the script as the input,
then create a link to that script which was named "=lists.mutt-users"
(or whatever the mailbox is). That seemed overly complicated, though
neat, so I dropped that for command-line parameters.
My mutt runs on a debian install under VirtualBox which is running on a
Vista Host. That said, my theory is that mutt is going fast enough that
the file is not available in time for mutt to source it on my
installation. Not sure what to do if that's the case, though.
Here's my "mutt -v" output just in case there's something screwy. I'm
following HEAD on a personal install of mutt.
#v+
Mutt 1.5.19 (2009-04-28)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
(Continue reading)