Skip to content

[stable5.10] fix(drafts): preserve Bcc header when saving drafts#13279

Merged
ChristophWurst merged 1 commit into
stable5.10from
backport/13182/stable5.10
Jul 10, 2026
Merged

[stable5.10] fix(drafts): preserve Bcc header when saving drafts#13279
ChristophWurst merged 1 commit into
stable5.10from
backport/13182/stable5.10

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 10, 2026

Copy link
Copy Markdown

Backport of PR #13182

Horde_Mime_Mail::getRaw() omits the Bcc header (same root cause as the
sent mailbox fix). Reopening a saved draft therefore lost all Bcc
recipients silently.

Add buildMimeHeaders() returning Horde_Mime_Headers directly, and use
$mail->getBasePart()->toString() with those headers instead of
$mail->getRaw() in saveLocalDraft() and saveDraft().

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst ChristophWurst enabled auto-merge July 10, 2026 10:56
@ChristophWurst ChristophWurst merged commit cfec689 into stable5.10 Jul 10, 2026
45 checks passed
@ChristophWurst ChristophWurst deleted the backport/13182/stable5.10 branch July 10, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant