aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/email/parser.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/email: strip \t in test command argsDmitry Vyukov2021-03-091-3/+6
| | | | | | There was a precedent of using: syz fix: repo \t commit This was rejected as error. Support \t between tokens.
* dashboard/app: add unfix commandDmitry Vyukov2020-10-011-22/+29
| | | | | Add "#syz unfix" command that undoes "#syz fix" effects and resets any existing fixing commits.
* pkg/email: accept #syz- prefix for commandsDmitry Vyukov2020-01-071-4/+11
| | | | | Some users spell the command as "#syz-dup:". Support this and few more variations.
* pkg/email: allow commands in subjectDmitry Vyukov2019-05-131-16/+16
| | | | | | Several users attempted this and there does not seem to be any reason to not allow this. So parse out command from subject as well.
* dashboard/app: restore printing of email commandsDmitry Vyukov2019-05-081-6/+7
| | | | | | | After commit 9ad9ef29caa52714dd5faff167e4b61643e40a7e we started saying "your command '3' is accepted" because we use numbers now. Keep string representation of the command when parsing and use it in reply emails.
* dashboard/app: slightly relax command parsingDmitry Vyukov2019-03-221-10/+51
| | | | | Users have misspelled test: multiple times. Accept commands without the colon.
* dashboard/app: add uncc commandDmitry Vyukov2019-03-221-0/+11
| | | | | | | | | 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
* gometalinter: clean up vetshadowDmitry Vyukov2018-07-311-1/+4
| | | | | | | This just cleans up existing warnings. vetshadow is not enabled yet because it crashes. Update #538
* pkg/email: support quoted-printable emailsDmitry Vyukov2018-06-181-2/+5
| | | | | | We did not handle quoted-printable because mime package handles it. But we can have a non-mime email in quoted-printable. Simply handle it always, it's not hard.
* gometalinter: enable line length checkingDmitry Vyukov2018-05-041-1/+2
| | | | | | | 120 columns looks like a reasonable limit and requires few changes to existing code. Update #538
* pkg/email: handle emails without Content-Type headerDmitry Vyukov2018-01-241-3/+8
| | | | | git-send-email sends emails without Content-Type, let's assume it's text.
* pkg/email: don't add <> to email when name is emptyDmitry Vyukov2017-12-281-2/+6
| | | | Just unnecessary clutter.
* dashboard/app: extract fixing tags from commitsDmitry Vyukov2017-12-271-5/+9
| | | | | | | | | | | | | Support the new scheme of associating fixing commits with bugs. Now we provide a tag along the lines of: Reported-by: <syzbot+a4a91f6fc35e102@syzkaller.appspotmail.com> The tag is supposed to be added to the commit. Then we parse commit logs and extract these tags. The final part on the dashboard is not ready yet, but syz-ci should already parse and send the tags.
* pkg/email: improve parsing of splitted linesDmitry Vyukov2017-12-191-17/+44
| | | | | | | | | | Allow: full-commit-title-on-next-line This allows commit titles between 70 and 80 cols with gmail. Also be more permissive wrt spaces and tabs.
* pkg/email: ignore missing To: headerDmitry Vyukov2017-11-221-4/+2
| | | | We've got such email.
* pkg/email: unsplit arguments for test commandDmitry Vyukov2017-11-171-1/+23
|
* pkg/email: fix base64-encoded body parsingDmitry Vyukov2017-11-161-4/+4
| | | | | We currently handle base64 only for attachments, but text/plain body can also be base64-encoded.
* dashboard/app: email fixesDmitry Vyukov2017-10-311-0/+15
| | | | | | | 1. Allows sending emails upstream. 2. Filter out duplicate emails coming from our mailing lists. 3. Increase retry attempts for email commands (don't want them to fail due to concurrent crash reports from managers).
* dashboard/app: heavylifting of email reportingDmitry Vyukov2017-08-171-22/+68
| | | | | | | | | - save Message-ID and use In-Reply-To in subsequent messages - remember additional CC entries added manually - don't mail to maintainers if maintainers list is empty - improve mail formatting and add a footer - implement upstream/fix/dup/invalid commands over email - add tests
* pkg/email: fix bug in context extractionDmitry Vyukov2017-07-051-0/+6
| | | | Compare email addresses without full name.
* pkg/email: add AddAddrContext/RemoveAddrContextDmitry Vyukov2017-07-051-30/+39
| | | | Replace extractBugID function with more general AddAddrContext/RemoveAddrContext.
* pkg/email: don't add own email address to CC listDmitry Vyukov2017-07-031-8/+12
| | | | Otherwise we we send each reply to ourselves and receive it again.
* pkg/email: add function that forms reply to an emailDmitry Vyukov2017-07-021-1/+3
|
* pkg/email: add email parsing functionalityDmitry Vyukov2017-07-021-0/+183
Parse extracts all potentially interesting info from an incoming email.