Spam Filter

REST API Method: spamfilter

Returns a spam filter report, for the given report id, that gives results of evaluating the message content with different spam detection engines.

URL:

https://api.mailmonitorapp.com/mma/report/spamfilter/${reportid}

HTTP Method(s):

GET

Path Parameter:

reportid integer --

The id of the campaign. The call returns spam filter information for this campaign message.

Examples:

https://api.mailmonitorapp.com/mma/report/spamfilter/12812

Response:

JSON delivery report object. Each delivery report object has the following fields:

    • reportID: number

    • emailFrom: from header in email

    • emailSubject: subject header in email

    • reportCreated: date when emails were received

    • currentlyCollecting: if 1, then data is still being collected for this campaign

    • spamFilters: JSON array of spam report objects. Each spam report object has the following fields

      • name: name of spam filter

      • score: the filter-specific score value

      • details: the filter-specific details

JSON example response:

{

"reportID":12812,

"emailFrom":"sender@example",

"emailSubject":"Daily Deal for Wed",

"reportCreated":"2011-11-23",

"currentlyCollecting":0,

"spamFilters": [

{

"name":"spamassassin",

"score":"4.10",

"details":

"FB_WORD1_END_DOLLAR=1,HTML_IMAGE_RATIO_04=0.61,HTML_MESSAGE=0.001,MONEY_BACK=2.486"

},

{

"name":"barracuda",

"score":"-1.34",

"details":

"CN_BODY_332, DKIM_SIGNED, DKIM_VERIFIED, FB_WORD1_END_DOLLAR, HTML_IMAGE_RATIO_04, HTML_MESSAGE, MAILTO_TO_SPAM_ADDR, MONEY_BACK, SH_BIG5_05413_BODY_104\r\nX-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.81068\r\n\tRule breakdown below\r\n\t pts rule name description\r\n\t---- ---------------------- --------------------------------------------------\r\n\t-0.00 DKIM_VERIFIED Domain Keys Identified Mail: signature passes\r\n\t verification\r\n\t0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature\r\n\t0.00 MONEY_BACK BODY: Money back guarantee\r\n\t0.12 CN_BODY_332 BODY: CN_BODY_332\r\n\t0.21 SH_BIG5_05413_BODY_104 BODY: Body: contain \"UNSUBSCRIBE\"\r\n\t0.00 FB_WORD1_END_DOLLAR BODY: Looks like a word ending with a $\r\n\t0.00 MAILTO_TO_SPAM_ADDR URI: Includes a link to a likely spammer email\r\n\t0.17 HTML_IMAGE_RATIO_04 BODY: HTML has a low ratio of text to image area\r\n\t0.00 HTML_MESSAGE BODY: HTML included in message\r\nX-IMAIL-SPAM-PHRASE: (2cfa000121cb9df9, money back guarantee)\r\n"

},

{

"name":"postini",

"score":"0.0",

"details": "R = Racially insensitive spam score:95.9108 P = Sexually explicit (pornography) spam score:95.9108 M = Make-money-fast (MMF) spam score:95.5423 C = Commercial or “special offer” spam score:93.2377 FC = Financial Content score:95.5390 LC = Legal Content score:95.5390"},{"name":"symantec","score":"2.5 ","details":"SpamReason: No, hits=2.5 required=7.0 tests=FULL_REFUND,\r"

},

{

"name":"cloudmark",

"score":"0",

"details":"PASS"

}

]

}