On Sat, Dec 03, 2011 at 05:13:12PM +0100, Christoph Möbius wrote:
> I have a strange problem here that mutt doesn't ask me for the passphrase when
> I want to sign/encrypt a message.
> 
> Signing/encrypting using a key that has no passphrase works fine, though.
> 
> Actually mutt seems to ask in the "background" but the prompt immediately
> returns. Thus, I get an error when sending the message saying that I used a 
> bad
> passphrase. I use GnuPG with settings according to the mutt wiki:
> 
> set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 
> --armor --detach-sign --textmode %?a?-u %a? %f"
> set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose 
> --output - --encrypt --textmode --armor --always-trust --encrypt-to 
> 0x42828A3B -- -r %r -- %f"
> set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet 
> --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor 
> --always-trust --encrypt-to 0x42828A3B -- -r %r -- %f"

The following works for me:

set pgp_sign_command="gpg --no-verbose --batch --quiet --output - 
%?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose 
--output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch 
--quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor 
--always-trust -- -r %r -- %f"

Dennis

Reply via email to