in webmail & webapisrv, store bcc header in sent messages

when sending a message with bcc's, prepend the bcc header to the message we
store in the sent folder. still not in the message we send to the recipients.
This commit is contained in:
Mechiel Lukkien
2024-04-16 17:57:46 +02:00
parent abd098e8c0
commit c9451d4d06
11 changed files with 42 additions and 11 deletions

View File

@ -64,7 +64,8 @@ type Message struct {
To []NameAddress
CC []NameAddress
// For submissions, BCC addressees receive the message but are not added to the
// message headers. For incoming messages, this is typically empty.
// headers of the outgoing message. Only the message saved the to the Sent mailbox
// gets the Bcc header prepended. For incoming messages, this is typically empty.
BCC []NameAddress
// Optional Reply-To header, where the recipient is asked to send replies to.