make thread replies CC-aware and multi-domain aware

This commit is contained in:
Aine
2022-11-19 17:38:13 +02:00
parent 5fe8603506
commit 8aac16aca8
3 changed files with 44 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ type Email struct {
}
// New constructs Email object
func New(messageID, inReplyTo, references, subject, from, to, text, html string, files []*utils.File) *Email {
func New(messageID, inReplyTo, references, subject, from, to, rcptto, cc, text, html string, files []*utils.File) *Email {
email := &Email{
Date: dateNow(),
MessageID: messageID,
@@ -40,7 +40,8 @@ func New(messageID, inReplyTo, references, subject, from, to, text, html string,
References: references,
From: from,
To: to,
RcptTo: to,
CC: cc,
RcptTo: rcptto,
Subject: subject,
Text: text,
HTML: html,