aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-09 15:20:19 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-10 08:52:48 +0000
commit57f1247687b19d8e06b4bdc5a560565665403e08 (patch)
treee96ee66401d0b7498b0ea56b8c4f7c23e6eb1213 /syz-cluster
parent956bd956bb0433519b165665a40c8f2463bdf21a (diff)
syz-cluster: always include the archive list
We use the archive list to track replies, so it must be included in all our original emails as well.
Diffstat (limited to 'syz-cluster')
-rw-r--r--syz-cluster/email-reporter/handler.go2
-rw-r--r--syz-cluster/email-reporter/handler_test.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/syz-cluster/email-reporter/handler.go b/syz-cluster/email-reporter/handler.go
index 14c7d78ed..801c0279b 100644
--- a/syz-cluster/email-reporter/handler.go
+++ b/syz-cluster/email-reporter/handler.go
@@ -72,6 +72,7 @@ func (h *Handler) report(ctx context.Context, rep *api.SessionReport) error {
Subject: "Re: " + rep.Series.Title, // TODO: use the original rather than the stripped title.
To: rep.Cc,
Body: body,
+ Cc: []string{h.emailConfig.ArchiveList},
}
if rep.Moderation {
toSend.To = []string{h.emailConfig.ModerationList}
@@ -83,7 +84,6 @@ func (h *Handler) report(ctx context.Context, rep *api.SessionReport) error {
// We assume that email reporting is used for series received over emails.
toSend.InReplyTo = rep.Series.ExtID
toSend.To = rep.Cc
- toSend.Cc = []string{h.emailConfig.ArchiveList}
}
msgID, err := h.sender(ctx, toSend)
if err != nil {
diff --git a/syz-cluster/email-reporter/handler_test.go b/syz-cluster/email-reporter/handler_test.go
index b5eba8ce2..cda022a19 100644
--- a/syz-cluster/email-reporter/handler_test.go
+++ b/syz-cluster/email-reporter/handler_test.go
@@ -31,6 +31,7 @@ func TestModerationReportFlow(t *testing.T) {
receivedEmail.Body = nil // for now don't validate the body
assert.Equal(t, &emailclient.Email{
To: []string{testEmailConfig.ModerationList},
+ Cc: []string{testEmailConfig.ArchiveList},
Subject: "[moderation/CI] Re: " + testSeries.Title,
// Note that InReplyTo and Cc are nil.
}, receivedEmail)