More descriptive body spam message

Jules Field MailScanner at
Thu Jul 23 17:32:12 IST 2009

On 23/07/2009 12:00, Mauricio Tavares wrote:
>     I received a spam mail from one of my other accounts in which 
> their spamassassin detected the spam. That is fine, nothing specially 
> really. But what it had that was interesting to me was the amount of 
> info shown on the body of the message about the said spam:
> =============================%< ====================================
> Spam detection software, running on the system "", has
> identified this incoming email as possible spam.  The original message
> has been attached to this so you can view it (if it isn't spam) or label
> similar future email.  If you have any questions, see
> the administrator of that system for details.
>    [...]
> Content analysis details:   (6.9 points, 5.0 required)
>  pts rule name              description
> ---- ---------------------- 
> --------------------------------------------------
>  0.0 MISSING_MID            Missing Message-Id: header
>  1.3 MISSING_HEADERS        Missing To: header
>  1.0 BAYES_60               BODY: Bayesian spam probability is 60 to 80%
>                             [score: 0.6317]
>  0.0 HTML_MESSAGE           BODY: HTML included in message
>  1.5 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
>  0.0 FORGED_OUTLOOK_HTML    Outlook can't send HTML message only
>  3.1 FORGED_MUA_OUTLOOK     Forged mail pretending to be from MS Outlook
> The original message was not completely plain text, and may be unsafe to
> open with some email clients; in particular, it may contain a virus,
> or confirm that your address can receive spam.  If you wish to view
> it, it may be safer to save it to a file and open it with an editor.
> =============================%< ====================================
> A lot of that MailScanner already does, but in a shorthand version on 
> the header. Is there a way to do something like the above, as in 
> append that to the top of the body of the mail that by now is already 
> defanged?
Add a spam action "encapsulate" and you will find you get a lot of that.


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at and

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list