I got the $spam_report variable working sort of. Here's what it returns:
Spam detection software, running on the system "pascal.ctyme.com", 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 preview: [...]
Content analysis details: (0.3 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.5 DNS_FROM_RFC_BOGUSMX RBL: Envelope sender in bogusmx.rfc-ignorant.org
-3.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1%
[score: 0.0008]
2.2 TVD_SPACE_RATIO BODY: TVD_SPACE_RATIO
-0.4 AWL AWL: From: address is in the auto white-list
I'm not sure where the part above the -------- comes from but I'd like to get rid of it.
How would I do that?