mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Spam service (#269)
This commit is contained in:
23
spam/examples.json
Normal file
23
spam/examples.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user