From 65e8686b0e9e909b6ea5629f95a9b14e81927872 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 25 Oct 2024 14:29:36 +0200 Subject: dashboard: adapt to the new Googe Groups footer It changed recently and it broke our email discussion link extraction. Closes #5431. --- pkg/email/parser_test.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'pkg/email/parser_test.go') diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index 239b795a3..4c042bcfc 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -461,6 +461,35 @@ For more options, visit https://groups.google.com/d/optout.`, }, }, }}, + {`Date: Sun, 7 May 2017 19:54:00 -0700 +Message-ID: <123> +Subject: new footer +From: Bob +To: syzbot +Content-Type: text/plain; charset="UTF-8" + +some title + +-- +You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. +To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. +To view this discussion visit https://groups.google.com/d/msgid/syzkaller-bugs/671b7fb2.050a0220.2e773.0000.GAE%40google.com.`, + Email{ + BugIDs: []string{"4564456"}, + MessageID: "<123>", + Date: time.Date(2017, time.May, 7, 19, 54, 0, 0, parseTestZone), + Link: "https://groups.google.com/d/msgid/syzkaller-bugs/671b7fb2.050a0220.2e773.0000.GAE@google.com", + Subject: "new footer", + Author: "bob@example.com", + Cc: []string{"bob@example.com"}, + Body: `some title + +-- +You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. +To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. +To view this discussion visit https://groups.google.com/d/msgid/syzkaller-bugs/671b7fb2.050a0220.2e773.0000.GAE%40google.com.`, + Patch: "", + }}, {`Date: Sun, 7 May 2017 19:54:00 -0700 Message-ID: <123> -- cgit mrf-deployment