diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-11 16:29:17 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-12 13:55:59 +0200 |
| commit | ec77d7cc1b8bc1c3058c2bfdcfcccb781f338f20 (patch) | |
| tree | 7fc352238272f4ba07e40194449adbe9233b1db0 /tools/syz-lore | |
| parent | dc4aafee511399ae7135a8f8d9e4cdcd9cca8fee (diff) | |
pkg/email: expose OwnEmail flag
We anyway already extract this information, there's no sense in
extracting it again in other places.
Diffstat (limited to 'tools/syz-lore')
| -rw-r--r-- | tools/syz-lore/query_lkml.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/syz-lore/query_lkml.go b/tools/syz-lore/query_lkml.go index 61cb848f5..4b59b6393 100644 --- a/tools/syz-lore/query_lkml.go +++ b/tools/syz-lore/query_lkml.go @@ -52,7 +52,7 @@ func main() { for _, m := range thread.Messages { messages = append(messages, dashapi.DiscussionMessage{ ID: m.MessageID, - External: !emailInList(emails, m.Author), + External: !m.OwnEmail, Time: m.Date, }) } @@ -151,12 +151,3 @@ func processArchives(dir string, emails, domains []string) []*lore.Thread { log.Printf("%d threads are related to syzbot", len(ret)) return ret } - -func emailInList(list []string, email string) bool { - for _, str := range list { - if str == email { - return true - } - } - return false -} |
