Skip to content

[stable5.10] fix(sending): preserve Bcc header in Sent mailbox copy#13259

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

[stable5.10] fix(sending): preserve Bcc header in Sent mailbox copy#13259
ChristophWurst merged 1 commit into
stable5.10from
backport/13180/stable5.10

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 7, 2026

Copy link
Copy Markdown

Backport of PR #13180

Horde_Mime_Mail::addHeader('Bcc', ...) silos the Bcc value into a
separate $_bcc field instead of $_headers, so getRaw() never includes
it. The raw message stored in the Sent mailbox therefore had no Bcc
header, unlike Evolution, Thunderbird, and Horde IMP.

Mirror Horde IMP's approach: build Horde_Mime_Headers directly with Bcc
included, strip it from a clone for SMTP delivery (RFC 5321), and pass
the full headers to $mimePart->toString() for the Sent mailbox copy.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst ChristophWurst enabled auto-merge July 7, 2026 11:18
@ChristophWurst ChristophWurst merged commit c9b30e2 into stable5.10 Jul 7, 2026
45 checks passed
@ChristophWurst ChristophWurst deleted the backport/13180/stable5.10 branch July 7, 2026 11:39
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