#3532: Use $SHELL when running mailcap-related commands
-------------------------+--------------------------------------------------
 Reporter:  vinc17       |       Owner:  mutt-dev
     Type:  enhancement  |      Status:  new     
 Priority:  major        |   Milestone:          
Component:  mutt         |     Version:          
 Keywords:               |  
-------------------------+--------------------------------------------------
 Mutt should run mailcap-related commands (and possibly all commands, in
 which case the change could be done in system.c) with the user's shell
 (provided by $SHELL, else his login shell?) instead of /bin/sh. The reason
 is that /bin/sh is very limited and doesn't allow the user to provide a
 file to source in order to dynamically update the environment (for
 instance, zsh will source the user's .zshenv file). This is needed when
 running Mutt in GNU Screen across X11 sessions: updating the XAUTHORITY
 value is necessary before running an X application.

 Notes:

 * Some other programs already use $SHELL (etc.) instead of /bin/sh for
 running commands (e.g. ssh, gdb).

 * This can be regarded as incompatible with the mailcap description in the
 mailcap(5) man page (at least under Debian), which says that system() is
 used, but anyway Mutt is already somewhat incompatible as it doesn't use
 system(), and I've reported a bug to change that: http://bugs.debian.org
 /cgi-bin/bugreport.cgi?bug=634254

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3532>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to