aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/email
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-09 16:40:02 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-10 08:52:48 +0000
commit035a02968dc78ddb1df64971fd1c690d3c7684ed (patch)
tree235533dbba38b17302e43629cc1a56b89929989b /pkg/email
parent33ffce52a3b573ac252d419c0ff3c956028650ad (diff)
dashboard: prefix forwarded email subjects
This will allow us to easily identify them.
Diffstat (limited to 'pkg/email')
-rw-r--r--pkg/email/parser.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/email/parser.go b/pkg/email/parser.go
index 9e629ad05..63f758bd2 100644
--- a/pkg/email/parser.go
+++ b/pkg/email/parser.go
@@ -60,6 +60,8 @@ const (
cmdTest5
)
+const ForwardedPrefix = "Forwarded: "
+
var groupsLinkRe = regexp.MustCompile(`(?m)\nTo view this discussion (?:on the web )?visit` +
` (https://groups\.google\.com/.*?)\.(:?$|\n|\r)`)