Hi!

On Thu, Jan 28, 2016 at 03:35:05PM +1300, martin f krafft wrote:
> I have two machines with mutt, one has the sidebar patch, while the
> other does not. I'd like to use the same config on both, but
> obviously the one without the patch falls over the sidebar keywords,
> e.g.:
> 
>   Error in /home/madduck/.mutt/sidebar, line 4: sidebar-prev: no
>   such function in map
> 
> Short of writing a script to print out the sidebar config depending
> on the output of mutt -v (ew!), I was wondering if there's another
> way in mutt to support different versions from the same config, e.g.
> a soft-fail mode, or a way to test for existence of certain
> variables before starting a configuration block?

I keep my sidebar configuration in a separate file and source it when
sidebar is enabled with the following `source` command:

    source `FILE=$HOME/.mutt/sidebar; mutt -v | grep -Fq sidebar || 
FILE=/dev/null; echo $FILE`

-- 
pozdrawiam,
Łukasz Szczęsny

Reply via email to