GPGMail: 2.7b3 bugs in selecting keys for signing. possible emailcounter bug too

ruben's Avatar


08 May, 2017 12:37 PM

I have two keys in my gpg keychain, one is a legacy key, the other is my current one.

Despite selecting C431470D, D81343FD is always used. gpgkeychain orders with D81343FD being the first key.

After I disabled the gpgmail bundle in mail, miraculously my smart mailboxes started to show their unread mail counters again

$ gpg --list-keys [email blocked] pub 1024D/C431470D 2002-03-03
uid Ruben van Staveren [email blocked]
sub 1280g/F476D296 2002-03-03

gpg: Note: signatures using the MD5 algorithm are rejected
pub 1280R/D81343FD 1995-04-26
uid Ruben van Staveren [email blocked]

* Signing/encryption using the preferred key * Smart mailboxes showing their unread message count

Additional info
gpgmail bundle 2.7b3, disabled for now

macOS           10.12.4     16E195
GPG Suite       2017.1b3    1812    (d43863c)
GPGMail -
GPG Keychain    1.3.3b2     1271    (028a4a2)
GPGServices     1.11        916     (872e77d)
MacGPG2         2.0.30-1b2  887-    (4912d26)
GPGPreferences  2.0.2b3     927     (641418e)
Libmacgpg       0.7         782     (536bf51)
pinentry        0.9.7       4       (b75069d)
  1. Support Staff 1 Posted by Steve on 08 May, 2017 02:19 PM

    Steve's Avatar

    Hi Ruben,

    welcome to the GPGTools support platform. Sorry you are having problems using GPG Suite.

    Thanks for taking the time to report the issues you are seeing. The key selection bug is a known issue in the 10.12 beta of GPGMail.

    We have a ticket for this problem. I connected this discussion with the existing ticket. That means, should this discussion get closed, it will be re-opened as soon as the ticket is closed. That way you'll stay in the loop and get notified as soon as we have news. Feel free to open a new discussions should you run into further problems or need assistance.

    To workaround the key selection problem, I would suggest to disable the old key in GPG Keychain. That should result in GPGMail then using the correct key.

    That issue is being worked on and we hope to be able to ship a fix with the next beta.

    Can you experiment with the unread counters in smart mailboxes a bit more and see if you are able to find a pattern to reliably reproduce the problem and if it indeed is related to GPGMail.

    Kind regards,

  2. 2 Posted by ruben on 09 May, 2017 09:51 AM

    ruben's Avatar

    I've re enabled the bundle, but unfortunately it doesn't reproduce (yet). I'll keep an eye on it

  3. Support Staff 3 Posted by Steve on 09 May, 2017 10:15 AM

    Steve's Avatar

    Sure. As mentioned the bug you where seeing with key selection is a known issue:
    If multiple private keys are available for the same email address, GPGMail currently picks one at random to sign the message. [#895]

    We will keep you posted as soon as we have a fix.

  4. Steve closed this discussion on 07 Aug, 2017 06:23 PM.

  5. Steve re-opened this discussion on 25 Aug, 2017 09:01 PM

  6. Support Staff 4 Posted by Steve on 25 Aug, 2017 09:01 PM

    Steve's Avatar

    Hi Ruben,

    good news - the issue where key selection in the From: field was ignored when more than one secret key existed for the same email address, has been fixed. If you want to test the fix, please download our latest nightly GPG Suite. That page also has sig and SHA1 to verify the download.

    Best, steve

    Disclaimer: This is a development version which has not been thoroughly tested yet, so bugs or crashes are to be expected. Thanks for helping us test this fix.

  7. Steve closed this discussion on 16 Feb, 2018 11:25 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac