Summary: | Mutt fails to invoke gpg (via gpgme) for signing mail | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew John Hughes <gnu_andrew> |
Component: | Current packages | Assignee: | Fernando J. Pereda (RETIRED) <ferdy> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | net-mail+disabled |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Andrew John Hughes
2008-04-20 20:40:25 UTC
Which gpg version do you use? Which gpgme version do you use? Looking that the strace, which exec fails? Please include the relevant portions of your mutt config (I use it directly, not via gpgme). set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --no-auto-check-trustdb --batch --output - %f" set pgp_verify_command="gpg --no-verbose --batch --output - --no-auto-check-trustdb --verify %s %f" #set pgp_verify_command="cp %s %f ~" set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --no-verbose --batch --textmode --output - --encrypt --sign %?a?-u %a? --armor -- -r %r -- %f" set pgp_encrypt_only_command="pgpewrap gpg --no-verbose --batch --output - --encrypt --textmode --armor -- -r %r -- %f" set pgp_import_command="gpg --no-verbose --import -v %f" set pgp_export_command="gpg --no-verbose --export --armor %r" set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" #set pgp_getkeys_command="gpg --no-verbose --batch -q --recv-keys %r" set pgp_autosign set pgp_use_gpg_agent set pgp_timeout = 6000 set pgp_sign_as="0x3233C22C!" app-crypt/gpgme-1.1.6 app-crypt/gnupg-2.0.7-r1 mail-client/mutt-1.5.16 USE="berkdb crypt gdbm gnutls gpgme idn imap mbox nls nntp pop sasl smime smtp ssl" I haven't added anything specified to my mutt config. Given this has a USE flag and no instruction were given, I assumed it would work out of the box as it does on Debian. I just copied across the following from a Debian machine and it works: # GnuPG configuration set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmod\ e %?a?-u %a? %f" set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign \ %?a?-u %a? %f" set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor\ --always-trust -- -r %r -- %f" set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --out\ put - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" set pgp_import_command="gpg --no-verbose --import %f" set pgp_export_command="gpg --no-verbose --export --armor %r" set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" Can I suggest we have a better default configuration for Mutt so everyone doesn't have to manually configure GPG support? No. We provide what upstream provides. gpg.rc is certainly provided by the ebuild. - ferdy |