Re: muttrc for different mutt versions

2018-09-06 Thread Todd Zullinger
Claus Assmann wrote:
> On Thu, Sep 06, 2018, Kai Weber wrote:
> 
>> How can I have the same muttrc on both machines without running into
>> errors during mutt start?
> 
> I split the rc file into
> 1) a common part
> 2) parts specific to the mutt version
> and
> - source the common part (1) in the specific version (2)
> - use a wrapper which invokes mutt with the specific rc file (2)

Mutt also looks for muttrc-$VERSION, so you can avoid the
need for a wrapper.  If you start mutt-1.10.1 and have a
config file at ~/.mutt/muttrc-1.10.1, it will be sourced.

You can use $XDG_CONFIG_HOME/mutt/muttrc-$VERSION or
~/.muttrc-$VERSION as well, of course.

Source: http://mutt.org/doc/manual/#configuration-files

-- 
Todd
~~
Happiness is like peeing on yourself. Everyone can see it, but only
you can feel its warmth



signature.asc
Description: PGP signature


Re: muttrc for different mutt versions

2018-09-06 Thread Claus Assmann
On Thu, Sep 06, 2018, Kai Weber wrote:

> How can I have the same muttrc on both machines without running into
> errors during mutt start?

I split the rc file into
1) a common part
2) parts specific to the mutt version
and
- source the common part (1) in the specific version (2)
- use a wrapper which invokes mutt with the specific rc file (2)


muttrc for different mutt versions

2018-09-06 Thread Kai Weber
At home I use Debian unstable with mutt 1.10.x, at work I am bound to
Debian 9 and mutt 1.7.2. I know, I could compile and install mutt by
myself but let's say I can not:

How can I have the same muttrc on both machines without running into
errors during mutt start?

Error in /home/kai/.config/mutt/muttrc, line 16: mime_type_query_command: 
unknown variable
Error in /home/kai/.config/mutt/muttrc, line 76: abort_noattach_regexp: unknown 
variable
source: errors in /home/kai/.config/mutt/muttrc

Any suggestions?

Kai