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

Re: Conditionally include a file in the configuration



Hi,

> The situation is the following. I have more than one set of mailboxes
> to work with and I want to select which set mutt should consider based
> in some kind of condition (like the value of an environment variable,
> for instance). Is it possible to have the mutt configuration file
> conditionally executing a command? If not, does anybody sugests a
> solution to this problem?

I use.

macro index "<F1>" ":unmailboxes *<enter>:source 
~/.mutt/mailboxes.privat<enter>"
macro pager "<F1>" ":unmailboxes *<enter>:source 
~/.mutt/mailboxes.privat<enter>"
macro index "<F2>" ":unmailboxes *<enter>:source 
~/.mutt/mailboxes.privat<enter>:source ~/.mutt/mailboxes.cip<enter>"
macro pager "<F2>" ":unmailboxes *<enter>:source 
~/.mutt/mailboxes.privat<enter>:source ~/.mutt/mailboxes.cip<enter>"
macro index "<F3>" ":unmailboxes *<enter>:source 
~/.mutt/mailboxes.privat<enter>:source ~/.mutt/mailboxes.cip<enter>:source 
~/.mutt/mailboxes.lists<enter>"
macro pager "<F3>" ":unmailboxes *<enter>:source 
~/.mutt/mailboxes.privat<enter>:source ~/.mutt/mailboxes.cip<enter>:source 
~/.mutt/mailboxes.lists<enter>"

        Thomas