This is the second part to support the XDG Base Directory. Mutt will now try to additionally locate system muttrc in paths listed in XDG_CONFIG_DIRS (and default to /etc/xdg if not set).
Patch 2 and 3 clean up stuff a bit, by reordering the code and removing a non-necessary global variable. Patch 4 allows multiple muttrc to be passed on the command line. They are sourced in order. This serie was lightly-tested, so there might be some issues that I haven't spotted. Damien Riegel (4): Additionally search Muttrc in XDG_CONFIG_DIRS move processing of global config file above processing of user config make Muttrc a local variable Allow multiple muttrc on the command line globals.h | 1 - init.c | 139 +++++++++++++++++++++++++++++++++++++++------------------- main.c | 8 ++-- mutt.h | 2 +- muttbug.sh.in | 3 +- 5 files changed, 102 insertions(+), 51 deletions(-) -- 2.10.2