[neomutt-users] dereference SYSCONFDIR in neomuttrc?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Jun 28 11:03:49 CEST 2023

I have compiled neomutt this way:

root at fex:/sw/ubuntu-22.04/neomutt-20230517# neomutt -v
NeoMutt 20230517
Copyright (C) 1996-2022 Michael R. Elkins and others.
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: Linux 5.15.0-75-generic (x86_64)
ncurses: ncurses 6.3.20211021 (compiled with 6.3.20211021)
libidn2: 2.3.2 (compiled with 2.3.2)

Configure options: --prefix=/sw/ubuntu-22.04/neomutt-20230517 --lua

Compilation CFLAGS: -fno-delete-null-pointer-checks -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -D_XOPEN_SOURCE_EXTENDED -I/usr/include/lua5.4 -DNCURSES_WIDECHAR

Default options:
  +attach_headers_color +compose_to_sender +compress +cond_date +debug
  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color
  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop
  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar
  +skip_quoted +smtp +status_color +timeout +tls_sni +trash

Compile options:
  -autocrypt +fcntl -flock -fmemopen +futimens +getaddrinfo -gnutls -gpgme
  -gsasl -gss -hcache -homespool +idn +inotify -locales_hack +lua -mixmaster
  +nls -notmuch -openssl +pgp +regex -sasl +smime -sqlite +sun_attachment


I have added extra config files in SYSCONFDIR.
How can I access them via neomuttrc?

I tried:

framstag at fex:~/.neomutt: l /sw/ubuntu-22.04/neomutt-20230517/etc/
-R-- 191,849 2023-06-23 13:41 /sw/ubuntu-22.04/neomutt-20230517/etc/neomuttrc
-R--       0 2023-06-28 10:54 /sw/ubuntu-22.04/neomutt-20230517/etc/x.rc

framstag at fex:~/.neomutt: tail -1 neomuttrc 
source $SYSCONFDIR/x.rc

framstag at fex:~/.neomutt: neomutt -Rf /tmp/mail
Error in /home/framstag/.neomutt/neomuttrc, line 6933: source: file $SYSCONFDIR/x.rc could not be sourced
source: errors in /home/framstag/.neomutt/neomuttrc

I now, I could add an extra environment variable SYSCONFDIR, but this
would influence other programs, too.

Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart         E-Mail: horlacher at tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    https://www.tik.uni-stuttgart.de/
REF:<20230628090349.GA506616 at tik.uni-stuttgart.de>

More information about the neomutt-users mailing list