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

only encrypt for own key if 'save_sent' is activated #14

Open
wants to merge 1 commit into
base: FRAMEWORK_6_0
Choose a base branch
from

Conversation

midahp
Copy link
Contributor

@midahp midahp commented Jul 3, 2024

This PR makes the $from parameter in IMP_Compose::_encryptMessage optional and only set it in IMP_Compose::buildAndSendMessage if $opts['save_sent'] is truthy.

With this change we make it possible to write an encrypted email without having a valid public key for the "from" address. Since the email will not be saved in the sent folder, we don't need to encrypt it with the senders public key.

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 this pull request may close these issues.

1 participant