I tried to remove spamassassin markup with the -d flag but it didn't
remove the spamassassin report.
I had this is the past also, and I searched this mailinglist and googled
and found occasional reports of the same.
I am using SpamAssassin 2.63 (but earlier verions had the same problem).
However, upon looking at the source I find in SpamAssassin.pm in
remove_spamassassin_markup:
if (/^SPAM: ----/ && $inreport == 0) {
# we've just entered a report. If there's a blank line before the
# report, get rid of it...
Duh.
I understand (from ./t/data/spam/003) that in ancient times spamreports looked
like:
SPAM: -------------------- Start SpamAssassin results ----------------------
SPAM: This mail is probably spam. The original message has been altered
SPAM: so you can recognise or block similar unwanted mail in future, using
SPAM: the built-in mail filtering support in your mail reader.
SPAM: Content analysis details: (15 hits, 5 required)
SPAM: Hit! (1 point) From: does not include a real name
etc...
But the spamreports *I* know have an entirely different layout and content,
and it would probably be better to delete (in remove_spamassassin_markup)
any attachments by the name of SpamAssassinReport.txt
So, am I the first one to spot this? (unlikely)
Am I overlooking something? (more likely)
Anyway, my spamassassin -d still doesn't work.
Thanks.