Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt with senders public key #20

Open
ilyakatz opened this issue Nov 27, 2014 · 2 comments
Open

Encrypt with senders public key #20

ilyakatz opened this issue Nov 27, 2014 · 2 comments

Comments

@ilyakatz
Copy link
Contributor

I think it would be a good idea to encrypt emails with senders public key for any email that is sent encrypted. This way the sender will be able to decrypt sent email (an equivalent of the sent folder in whatever smtp provider that is used). So, for example

If an email is sent with gpg encrypt: true, it would automatically add sender's key to the key argument. This perhaps make more sense in ActiveMailer and then you could have a global setting

# this will be the default even if it is not provided
config.action_mailer.gpg_encrypt_sender = false 

or

config.action_mailer.gpg_encrypt_sender = { 
  keys: { 
   '[email protected]' => support_key,
   '[email protected]' => tech_key 
  }
} 

I'd be happy to give it a try but I wanted to run it past you before I starting coding away. What do you think?

@jkraemer
Copy link
Owner

Hi Ilya,

that looks like a very useful feature, please go ahead :)

@ilyakatz
Copy link
Contributor Author

@jkraemer added PR, can you please check it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants