mailpile / Mailpile

A free & open modern, fast email client with user-friendly encryption and privacy features
https://mailpile.is
Other
8.81k stars 1.01k forks source link

How does Mailpile select secret keys? #439

Closed ageis closed 10 years ago

ageis commented 10 years ago

It seems like on startup Mailpile just selects the quickest GPG secret key that's available. I've tried using the default-key option in gpg.conf but that doesn't work. It's not using the private key I want it to. Can we make this an option?

smari commented 10 years ago

Hi! Yes, this is fairly dumb at the moment. I just hacked it in to load all of them for now, partially because I wanted to have something, but partially because I was thinking about how to do this along with key generation.

I find it quite likely that when we start making the setup more interactive (because there will be a few things we need to ask users) we'll refactor this to make it not just pull everything in stupidly. In the meantime I'll gladly accept pulls that make this less dumb.

oerdnj commented 10 years ago

JFTR I was able to circumvent this problem (it selected secret key of our CSIRT team :)) by deleting the configuration and setting up correct secret key before running 'setup' command.

Also Mailpipe should be able to handle the secret key switch (for key/algorithm rollovers).

BjarniRunar commented 10 years ago

This is fixed in the new setup flow.