mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
integrate spam check on email (#270)
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user