Discussion:
muttrc for different mutt versions
Kai Weber
2018-09-06 14:52:44 UTC
Permalink
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
Claus Assmann
2018-09-06 15:19:30 UTC
Permalink
Post by Kai Weber
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)
Todd Zullinger
2018-09-06 17:56:39 UTC
Permalink
Post by Claus Assmann
Post by Kai Weber
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
Loading...