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

Re: use script output as regex pattern in folder-fook



>>    set my_muttdir=$HOME/.mutt
>>    folder-hook `$my_muttdir/script.sh` ...
>
>> Here, Mutt doesn't seem to expand $my_muttdir before handing the command over
>> to the shell. Is there a trick to do that?
>
> It doesn't seem so. At least for interactive shell-escape function it's  
> documented that these variables aren't expanded... and I assume the same  
> is true for backtick expansion.

You can work around this by putting MUTTDIR in your shell environment
before running mutt.

sh$ export MUTTDIR=~/.mutt
  with
folder-hook `$MUTTDIR/script.sh`

-- 
 -D.    dgc@xxxxxxxxxxxx    NSIT    University of Chicago