From ca3ffbc9f365dab1816871c776e673e30a86bcdf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 Mar 2019 18:18:14 +0100 Subject: dashboard/app: add uncc command Add "#syz uncc" command as a safety handle. The command allows sender to unsubscribe from all future communication on the bug. Linus mentioned possibility of saying "I'm not the right person for this report" in the context of bug reminders: https://groups.google.com/d/msg/syzkaller/zYlQ-b-QPHQ/AJzpeObcBAAJ --- pkg/email/parser.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pkg/email/parser.go') diff --git a/pkg/email/parser.go b/pkg/email/parser.go index 1b2dbc747..ce652c5da 100644 --- a/pkg/email/parser.go +++ b/pkg/email/parser.go @@ -330,3 +330,14 @@ func MergeEmailLists(lists ...[]string) []string { } return result } + +func RemoveFromEmailList(list []string, toRemove string) []string { + var result []string + toRemove = CanonicalEmail(toRemove) + for _, email := range list { + if CanonicalEmail(email) != toRemove { + result = append(result, email) + } + } + return result +} -- cgit mrf-deployment