diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-03-21 18:18:14 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-03-22 12:00:50 +0100 |
| commit | ca3ffbc9f365dab1816871c776e673e30a86bcdf (patch) | |
| tree | 978a0825c46ccb63a0521d08c89128e867aa1e22 /pkg/email | |
| parent | 40fdabdc24442daa8f380fad4c880a056a074222 (diff) | |
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
Diffstat (limited to 'pkg/email')
| -rw-r--r-- | pkg/email/parser.go | 11 |
1 files changed, 11 insertions, 0 deletions
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 +} |
