integrate spam check on email (#270)

This commit is contained in:
Dominic Wong
2021-11-11 23:30:10 +00:00
committed by GitHub
parent 2e50bd5dc3
commit bfac5997d1
8 changed files with 121 additions and 52 deletions

View File

@@ -5,7 +5,7 @@
"run_check": true,
"request": {
"subject": "Welcome",
"email_body": "Hi there,\n\nWelcome to M3O.\n\nThanks\nM3O team",
"text_body": "Hi there,\n\nWelcome to M3O.\n\nThanks\nM3O team",
"from": "noreply@m3o.com",
"to": "hello@example.com"
},
@@ -18,6 +18,22 @@
"MISSING_MID, Missing Message-Id: header, 0.1"
]
}
},
{
"title": "Classify an email using the raw data",
"run_check": true,
"request": {
"email_body": "Subject: Welcome\r\nTo: hello@emaple.com\r\nFrom: noreply@m3o.com\r\n\r\nHi there,\n\nWelcome to M3O.\n\nThanks\nM3O team"
},
"response": {
"is_spam": false,
"score": 0.1,
"details": [
"NO_RELAYS, Informational: message was not relayed via SMTP, -0",
"NO_RECEIVED, Informational: message has no Received headers, -0",
"MISSING_MID, Missing Message-Id: header, 0.1"
]
}
}
]
}