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

Re: Conditionally include a file in the configuration



On Tue, Feb 24, 2004 at 11:27:02AM +0000, Jack Bertram wrote:
> * romildo@xxxxxxxxxxx <romildo@xxxxxxxxxxx> [040224 10:40]:
> > Is it possible to conditionally include a file
> > in the configuration file?
> 
> To more directly do what you are asking to do (but see the other replies
> for more mutt-like ways which may accomplish what you want) something
> like the following may work
> 
> in .muttrc:
> 
> source "/path/to/my/conditional/script.sh|"
> [...]

This is not working with Mutt 1.5.6i.

I have in ~/.mutt/muttrc:

   source "~/.mutt/mailboxes.sh|"               # mailboxes

When running mutt I get the message:

Error in /home/romildo/.mutt/muttrc, line 161: 
/home/romildo/.mutt/mailboxes.sh|: stat: No such file or directory

Any help?

Romildo