From ec77d7cc1b8bc1c3058c2bfdcfcccb781f338f20 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 11 Apr 2023 16:29:17 +0200 Subject: pkg/email: expose OwnEmail flag We anyway already extract this information, there's no sense in extracting it again in other places. --- pkg/email/parser.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/email/parser.go') diff --git a/pkg/email/parser.go b/pkg/email/parser.go index 77b063055..5b472a57e 100644 --- a/pkg/email/parser.go +++ b/pkg/email/parser.go @@ -27,6 +27,7 @@ type Email struct { Subject string MailingList string Author string + OwnEmail bool Cc []string Body string // text/plain part Patch string // attached patch, if any @@ -173,6 +174,7 @@ func Parse(r io.Reader, ownEmails, goodLists, domains []string) (*Email, error) Date: date, Link: link, Author: author, + OwnEmail: fromMe, MailingList: mailingList, Subject: subject, Cc: ccList, -- cgit mrf-deployment