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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ public function buildAndSendMessage(
$message,
$opts['encrypt'],
$recip['list'],
$from
($opts['save_sent'] ?? null) ? $from : null
);

/* Send the messages out now. */
Expand Down Expand Up @@ -997,7 +997,7 @@ protected function _encryptMessage(
Horde_Mime_Part $msg,
$encrypt,
Horde_Mail_Rfc822_List $recip,
Horde_Mail_Rfc822_Address $from
?Horde_Mail_Rfc822_Address $from = null
)
{
global $injector;
Expand All @@ -1011,7 +1011,9 @@ protected function _encryptMessage(
case IMP_Smime::ENCRYPT:
case IMP_Smime::SIGNENC:
$recip2 = clone $recip;
$recip2->add($from);
if ($from) {
$recip2->add($from);
}
break;
}

Expand Down
Loading