mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
dashboard/app: don't error on invalid emails
Malformed emails constantly appear from spammers. But we have not seen errors parsing legit emails. These errors are annoying. Warn and ignore them.
This commit is contained in:
parent
c84501fe70
commit
698a192c6d
@ -263,7 +263,11 @@ func handleIncomingMail(w http.ResponseWriter, r *http.Request) {
|
||||
func incomingMail(c context.Context, r *http.Request) error {
|
||||
msg, err := email.Parse(r.Body, ownEmails(c))
|
||||
if err != nil {
|
||||
return err
|
||||
// Malformed emails constantly appear from spammers.
|
||||
// But we have not seen errors parsing legit emails.
|
||||
// These errors are annoying. Warn and ignore them.
|
||||
log.Warningf(c, "failed to parse email: %v", err)
|
||||
return nil
|
||||
}
|
||||
log.Infof(c, "received email: subject %q, from %q, cc %q, msg %q, bug %q, cmd %q, link %q",
|
||||
msg.Subject, msg.From, msg.Cc, msg.MessageID, msg.BugID, msg.Command, msg.Link)
|
||||
|
Loading…
Reference in New Issue
Block a user