msys.cloudmark.analyze — Analyze a message using Cloudmark
msys.cloudmark.analyze(hdr, msg, vctx)
hdr: string msg: userdata, ec_message type (optional) vctx: userdata, validate_context type (optional)
This function analyzes the input string
hdr and returns a table of the following key/value pairs:
scorethe authority score for the message, a number between 0 and 100. The higher the number, the more certain the engine is that the mail is spam.
is_spamif cloudmark module option MinimumScore is set, this flag is set for messages whose score exceeds MinimumScore, to indicate the engine has determined the message is spam. No action is directly taken on the message; that is left to the user to do using a policy script.
categorythe category assigned to the message by the Cloudmark Authority.
category-descthe description of the category.
sub-categorythe sub-category assigned to the message by the Cloudmark Authority.
sub-category-descthe description of sub-category.
rescanthe rescan flag. If this flag is set to ‘yes’, the email would benefit from a rescan.
analysisthe Cloudmark Authority analysis header.
If input msg or vctx is not provided, they will be inferred from the current context. The above name value pairs are also set within the validation context (VCTX_MESS with cmae- as prefix) except analysis.
For a listing of the available context variables see “cloudmark – Cloudmark Authority Module”.
Do not use
pcall with this function.