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

Have mutt automatically run a script at startup?



On Thu, Dec 25, 2008 at 09:14:02PM EST, Kyle Wheeler wrote:
> On Thursday, December 25 at 07:56 PM, quoth Chris Jones:
> >`ls > /tmp/ls`
> >
> >.. in my .muttrc .. and despite an error message to the effect that the
> >command doesn't exist .. it actually works.
> 
> The reason it generates the error is because mutt doesn't ignore empty 
> strings. Therefore, it's trying to interpret the empty string as if it 
> was a command. You can silence the error like so:
> 
>      set my_junk=`ls > /tmp/ls`

alias al <`ls -1 ~/mail/lists | grep @ |awk -F@ '{print "alias" " " $1 " " "<" 
$1 "@" $2 ">"}' > ~/.mutt/lstal`>
source /home/gavron/.mutt/lstal

.. silently works also.

:-)

Thanks!

CJ