Hello mutt-developers,
here is a feature request for future versions of mutt:
Mutt looks for the PGPPASS environment variable. If this is set, then
no passphrase is needed to be send to pgp program, because pgp looks
for the PGPPASS variable by itself.
Mutt will also not ask the user for the passphrase.
This should be easy to implement.
The user would then have the option to set the passphrase via a
wrapper-script permanently.
For example:
------------------------ muttwrap -------------------
#!/usr/bin/sh
set $passparam=$*
if ( ps -U $LOGNAME | grep mutt | grep -v muttwrap > /dev/null ) then
echo "WARNING: You are already running Mutt."
echo " Starting Mutt in readonly mode."
echo
echo "Please enter passphrase: "
stty -echo
read pgppassphrase
PGPPASS=$pgppassphrase; export PGPPASS
stty echo
$PATHTOMUTT/mutt -R $*
else
echo "Please enter passphrase: "
stty -echo
read pgppassphrase
PGPPASS=$pgppassphrase; export PGPPASS
stty echo
$PATHTOMUTT/mutt $passparam
fi
------------------------------------------------------
Thank you very much!
Regards,
Daniel.