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

Re: Is there a way to have mutt automatically run a script at



On Thu, Dec 25, 2008 at 03:48:21PM EST, Michael Kjorling wrote:
> On 25 Dec 2008 14:13 -0500, by cjns1989@xxxxxxxxx (Chris Jones):
> > I guess I could write a wrapper to launch mutt but I was thinking of
> > coding something in my .muttrc that would invoke a bash shell & run the
> > script but I have not found anything.
> 
> You can use standard backtick `` syntax in muttrc, but unless you have
> a specific need that cannot be met in another way, a wrapper script
> sounds much easier (and likely cleaner) to me.

I added:

`ls > /tmp/ls`

.. in my .muttrc .. and despite an error message to the effect that the
command doesn't exist .. it actually works.

I had tried that earlier .. but since I was getting the error message at
mutt's startup .. I didn't think to check /tmp/ls ..

:-(

As to wrappers vs. a bloated .muttrc ... I have mixed feelings ..
sometimes I think I have too many of these wrappers .. maybe the good
thing about a one-liner in .muttrc is is that it lets me keep all my
mutt config in one place.

Thanks and Merry Xmas to both!

CJ