[neomutt-users] export config variable to environment variable?
framstag at rus.uni-stuttgart.de
Fri Jun 30 09:37:54 CEST 2023
On Wed 2023-06-28 (14:33), Ulli Horlacher wrote:
> (How) is it possible to export a config variable (eg my_color) as an
> environment variable?
> I call external programs via within neomutt, mostly my editor. Within the
> editor I need read access to the current values of neomutts variables.
> Reading $NEOMUTTRC does not help, because sometimes I change neomutt
> variables after the start (at runtime).
Meanwhile I have found the setenv command!
But I would like to have an extra automatic feature:
set VARIABLE="VALUE" ==> setenv NEOMUTT_VARIABLE "VALUE"
For example, I have in my neomuttrc:
neomutt should then automatically call internally
setenv NEOMUTT_charset "iso-8859-15"
setenv NEOMUTT_alias_file "~/.neomutt/aliases"
(uppercase NEOMUTT, lowercase neomutt variable name)
Then every programm started by neomutt (like the editor) knows its
*current* configuration! This would be a great help!
I could write a patch if my C knowledge would not be so rusty :-(
Last time I was programming in C is more than 20 years ago.
Ullrich Horlacher Server und Virtualisierung
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:<20230628123347.GA513787 at tik.uni-stuttgart.de>
More information about the neomutt-users