Package: mutt
Version: 1.9.4-3
Severity: normal
Hello!
This is a relatively new bug introduced at some point in the last year
or so (I don't remember the last time I signed a message using mutt).
My .muttrc includes the following line:
set pgp_sign_as=0x725E9D6EE56FCAD6C339A7F259D03CC92BA0FEAE
(which is my key id), and my .gnupg/gpg.conf includes the line:
keyring /usr/share/keyrings/debian-keyring.gpg
Since my GPG key is in the Debian keyring, I observe the following:
erdos:~ $ gpg --list-options show-keyring --list-secret-keys 0x59D03CC92BA0FEAE
Keyring: /home/jdg/.gnupg/pubring.gpg
-------------------------------------
sec# rsa4096/0x59D03CC92BA0FEAE 2014-10-29 [SC] [expires: 2018-08-23]
Key fingerprint = 725E 9D6E E56F CAD6 C339 A7F2 59D0 3CC9 2BA0 FEAE
uid [ultimate] Julian Gilbey <[email protected]>
uid [ultimate] Julian Gilbey <[email protected]>
uid [ultimate] Julian Gilbey <[email protected]>
uid [ultimate] Julian Gilbey <[email protected]>
ssb rsa4096/0x14A58BD97483A28B 2014-10-29 [E] [expires: 2018-08-23]
ssb rsa4096/0x695C429316C07BFE 2014-10-29 [S] [expires: 2018-08-23]
Keyring: /usr/share/keyrings/debian-keyring.gpg
-----------------------------------------------
sec# rsa4096/0x59D03CC92BA0FEAE 2014-10-29 [SC] [expires: 2018-08-23]
Key fingerprint = 725E 9D6E E56F CAD6 C339 A7F2 59D0 3CC9 2BA0 FEAE
uid [ultimate] Julian Gilbey <[email protected]>
uid [ultimate] Julian Gilbey <[email protected]>
uid [ultimate] Julian Gilbey <[email protected]>
uid [ultimate] Julian Gilbey <[email protected]>
ssb rsa4096/0x14A58BD97483A28B 2014-10-29 [E] [expires: 2018-08-23]
ssb rsa4096/0x695C429316C07BFE 2014-10-29 [S] [expires: 2018-08-23]
erdos:~ $
and the same key is reported twice, as the public key is found on two
separate keyrings.
In the past, mutt had no problem with this, but now, mutt is
complaining with the message:
ambiguous specification of secret key
`0x725E9D6EE56FCAD6C339A7F259D03CC92BA0FEAE'?
when I try to send a message with a signature, and it does not allow
me to do this. Commenting out the keyring line in gpg.conf allows the
signed mail to be sent, but it seems to me that the original behaviour
was probably better: if the only ambiguity is that two copies of the
same key are found, then the message should just be signed anyway.
Alternatively, the search should be performed by looking at the secret
keyrings rather than the public keyrings, if that is a meaningful
thing to do.
Best wishes,
Julian
-- Package-specific info:
Mutt 1.9.4 (2018-02-28)
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: Linux 4.14.0-3-amd64 (x86_64)
ncurses: ncurses 6.1.20180127 (compiled with 6.1)
libidn: 1.33 (compiled with 1.33)
hcache backend: tokyocabinet 1.4.48
Compiler:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 7.3.0-10'
--with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Debian 7.3.0-10)
Configure options: '--build=x86_64-linux-gnu' '--prefix=/usr'
'--includedir=\${prefix}/include' '--mandir=\${prefix}/share/man'
'--infodir=\${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var'
'--disable-silent-rules' '--libdir=\${prefix}/lib/x86_64-linux-gnu'
'--libexecdir=\${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode'
'--disable-dependency-tracking' '--with-mailpath=/var/mail'
'--enable-compressed' '--enable-debug' '--enable-fcntl' '--enable-hcache'
'--enable-gpgme' '--enable-lua' '--enable-imap' '--enable-smtp' '--enable-pop'
'--enable-sidebar' '--enable-nntp' '--enable-dotlock' '--disable-fmemopen'
'--with-curses' '--with-gnutls' '--with-gss' '--with-idn' '--with-mixmaster'
'--with-sasl' '--without-gdbm' '--without-bdb' '--without-qdbm'
'--with-tokyocabinet' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/mutt-2ZVkYF/mutt-1.9.4=. -fstack-protector-strong
-Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now'
'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
Compilation CFLAGS: -Wall -pedantic -Wno-long-long -g -O2
-fdebug-prefix-map=/build/mutt-2ZVkYF/mutt-1.9.4=. -fstack-protector-strong
-Wformat -Werror=format-security
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
+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_GETSID +USE_HCACHE
+USE_SIDEBAR +USE_COMPRESSED
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <[email protected]>.
To report a bug, please visit <https://gitlab.com/muttmua/mutt/issues>.
-- System Information:
Debian Release: buster/sid
APT prefers stretch
APT policy: (500, 'stretch'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL
set to en_GB.UTF-8), LANGUAGE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL set
to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mutt depends on:
ii libassuan0 2.5.1-2
ii libc6 2.27-3
ii libcom-err2 1.44.1-1
ii libgnutls30 3.5.18-1
ii libgpg-error0 1.28-2
ii libgpgme11 1.10.0-2
ii libgssapi-krb5-2 1.16-2
ii libidn11 1.33-2.1
ii libk5crypto3 1.16-2
ii libkrb5-3 1.16-2
ii libncursesw5 6.1-1
ii libsasl2-2 2.1.27~101-g0780600+dfsg-3
ii libtinfo5 6.1-1
ii libtokyocabinet9 1.4.48-11+b1
Versions of packages mutt recommends:
ii libsasl2-modules 2.1.27~101-g0780600+dfsg-3
ii locales 2.27-3
ii mime-support 3.60
Versions of packages mutt suggests:
ii aspell 0.60.7~20110707-4
ii ca-certificates 20170717
ii exim4-daemon-heavy [mail-transport-agent] 4.90.1-5
ii gnupg 2.2.5-1
ii ispell 3.4.00-6
pn mixmaster <none>
ii openssl 1.1.0h-2
pn urlview <none>
Versions of packages mutt is related to:
ii mutt 1.9.4-3
-- no debconf information