pinentry-tty issues with gpg2 / gpgme
Unless I switch to pinentry-curses, I'm still having the same problem I used to have where, when decrypting a message, pinentry-tty opens, but renders strangely, and doesn't seem to accept input properly. Not sure if it's a width problem or what. Typing my passphrase doesn't work, and if I ^C, I get dropped into a terminal which only echoes every other character.
I get the following oddly spaced text at the bottom of my terminal (using Apple terminal on Mac OS X, sshed into a FreeBSD 11 machine). TERM
is xterm-256color
Invoking PGP...Please enter the passphrase to unlock the OpenPGP secret key:
"William Yardley (Personal) <xxx@example.com>"
4096-bit RSA key, ID xxxxxxxxxxxxxxxxx,
created 2013-06-15 (main key ID xxxxxxxxxxxxxxxxxxx).
Passphrase:
We had briefly discussed this back in 2016 (https://markmail.org/message/z7fkydtjmjancj7u), but not sure if anything ever came of it. Thought I'd mention it again, especially with the recent patches / updates proposed by @dd9jn
Let me know if there's additional info I can include to help My gpg related settings are just
set crypt_use_gpgme=yes
set crypt_verify_sig=yes
With pinentry-program /usr/local/bin/pinentry-curses
in .gnupg/gpg-agent.conf
, everything works fine.
aura% mutt -v
Mutt 1.11.1 (2018-12-01)
Copyright (C) 1996-2016 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: FreeBSD 11.2-RELEASE-p5 (amd64)
ncurses: ncurses 5.9.20140222 (compiled with 5.9)
libiconv: 1.14
libidn: 1.34 (compiled with 1.34)
hcache backend: lmdb LMDB 0.9.22: (March 21, 2018)
Compiler:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc7/gcc/x86_64-portbld-freebsd11.2/7.3.0/lto-wrapper
Target: x86_64-portbld-freebsd11.2
Configured with: /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.3.0/configure --with-build-config=bootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc7 --libexecdir=/usr/local/libexec/gcc7 --program-suffix=7 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc7/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc7 --build=x86_64-portbld-freebsd11.2
Thread model: posix
gcc version 7.3.0 (FreeBSD Ports Collection)
Configure options: '--disable-fcntl' '--with-ssl=/usr' '--with-docdir=/usr/local/share/doc/mutt' '--sysconfdir=/usr/local/etc' '--enable-external-dotlock' '--enable-pop' '--enable-imap' '--disable-warnings' '--enable-debug' '--disable-flock' '--enable-gpgme' '--with-libiconv-prefix=/usr/local' '--with-idn' '--enable-locales-fix' '--with-sasl=/usr/local' '--enable-smtp' '--without-gss' '--enable-hcache' '--without-gdbm' '--without-bdb' '--with-lmdb' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--infodir=/usr/local/info/'
Compilation CFLAGS: -g -O2
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE -USE_FCNTL -USE_FLOCK
+USE_POP +USE_IMAP +USE_SMTP
+USE_SSL_OPENSSL -USE_SSL_GNUTLS +USE_SASL -USE_GSS +HAVE_GETADDRINFO
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +HAVE_FUTIMENS
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME
-EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS +LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN -HAVE_LIBIDN2 +HAVE_GETSID +USE_HCACHE
-USE_SIDEBAR -USE_COMPRESSED -USE_INOTIFY
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@mutt.org>.
To report a bug, please contact the Mutt maintainers via gitlab:
https://gitlab.com/muttmua/mutt/issues