adding emails to keys

elmaildelola's Avatar


11 Dec, 2014 05:26 PM


Before the Yosemite update I have been able to use this command in Terminal in order to add new emails (userID) to keys
(defaults write org.gpgtools.gpgmail PublicKeyUserMap -dict-add [email blocked] HEREGOESTHEKEYFOOTPRINT)

Even if it was not working 100% it was working in most cases and sometimes a restart of the computer would make the trick to happen.

After installing the BETA 3 in Yosemite, the pairing of the key with another UserID reseted; which meant that I had to do the "Terminal trick" all over again. I did it one by one with 50 of my contacts to test it. iMail allowed me to encrypt emails to the 50 of them after restarting. From those 50 at least 20, randomly, did not got my email right. They got two attachments one called Mail Attachment and a second one called encrypted.asc

They got confused thinking they got my key, but it was not my public key. I am not sure of what was that, or how to solve it.

I don't know if this is related with the Beta version or with a general issue when adding emails to keys using the command in Terminal. I just hope this can be solved and my comment helps you to get inspired in new features. It would be super good if I did not had to go to Terminal and do the trick when adding new contacts with different userID in their keys.

Thanks for the good work, I am patiently waiting for the full release of GPGTools for Yosemite.

  1. 1 Posted by elmaildelola on 08 Jan, 2015 06:05 PM

    elmaildelola's Avatar


    I installed BETA 4 and my keys are all still in order. I am still able to add emails (ID) to existing keys via Terminal, but the emails I send to this new contacts are not right (see screenshot).

    A work around in Mac is that I use GPG Services to encrypt in TextEdit and then send the text as attachment. This works fine (I got the idea from using the iPad app which works perfectly).

    I am not sure if my problem has to do with the fact that most of my contacts have keys that do not correspond to their current emails, or if the issue comes from another source.

    Any help will be appreciated.

  2. Support Staff 2 Posted by Steve on 06 Feb, 2015 02:16 AM

    Steve's Avatar

    Hi there,

    so does the recipient use GPG Suite as well since the screenshot of the recieved mail shows

    It seems that PGP/MIME is not understood correctly while OpenPGP/inline works.

    At least that's how I interpret your report.

    Could you please double check with the recipient that they have GPG Suite beta 4 installed on their system and then retry?

    All the best,

  3. Support Staff 3 Posted by Steve on 28 May, 2015 06:37 PM

    Steve's Avatar

    Closing, since no further user feedback was received. Should your problem persist, feel free to re-open this discussion any time.

    All the best, steve

  4. Steve closed this discussion on 28 May, 2015 06:37 PM.

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