Skip to content

fix(drafts): preserve Bcc header when saving drafts#13182

Draft
ChristophWurst wants to merge 1 commit into
mainfrom
fix/bcc-draft
Draft

fix(drafts): preserve Bcc header when saving drafts#13182
ChristophWurst wants to merge 1 commit into
mainfrom
fix/bcc-draft

Conversation

@ChristophWurst

@ChristophWurst ChristophWurst commented Jun 30, 2026

Copy link
Copy Markdown
Member

Somewhat related to #13180.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

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>
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