Spam service (#269)

This commit is contained in:
Dominic Wong
2021-11-11 17:30:46 +00:00
committed by GitHub
parent e80b68116a
commit 57f48c49fd
19 changed files with 636 additions and 1 deletions

23
spam/examples.json Normal file
View File

@@ -0,0 +1,23 @@
{
"classify": [
{
"title": "Classify an email",
"run_check": true,
"request": {
"subject": "Welcome",
"email_body": "Hi there,\n\nWelcome to M3O.\n\nThanks\nM3O team",
"from": "noreply@m3o.com",
"to": "hello@example.com"
},
"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"
]
}
}
]
}