HTML in Mailscanner reports

Mark Sapiro mark at msapiro.net
Thu Jul 16 17:40:38 IST 2009


On Thu, Jul 16, 2009 at 11:48:04AM +0200, Ralph Bornefeld-Ettmann wrote:
> Julian Field schrieb:
> >
> >
> >On 15/07/2009 16:15, Ralph Bornefeld-Ettmann wrote:
> >>hi,
> >>
> >>is it possible to use HTML tags in reports like 
> >>recipient.spam.report.txt?
> >The ".txt" should be the give-away on that one.
> >If it's expecting HTML, it's called ".html".
> >
> >Jules
> >
> sorry, did not work.
> 
> MailScanner 4.77.10
> Postfix 2.3.3-2.1.el5_2
> OS : CentOS 5.2
> 
> /etc/MailScanner/MailScanner.conf :
> 
> Recipient Spam Report = %report-dir%/recipient.spam.report.html
> 
> 
> /etc/MaiScanner/reports/en/recipient.spam.report.html :


Jules was NOT saying wou could cause the report to be put in a
text/html part of the message simply by changing the file extension
from .txt to .html. He was trying to say that the fact that the
distributed report file has a .txt extension implies it will be put
in a text/plain part in the message. Changing the extension won't
change that.

I.e., the Recipient Spam Report is sent in a text/plain message
part and conformant MUAs (mail clients) won't interpret html tags.

-- 
Mark Sapiro mark at msapiro net       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list