🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #258966

Re: SpamAssassin doesn't properly parse HTML.

#258966
From: Michael Baeuerle
Date: Wed, 11 Feb 2015 10:15
38 lines
2624 bytes
Jeff-Relf.Me wrote:
> 
> [...]
> How come SpamAssassin fails to locate my <PRE> tag ?
> 
> Answer: Because the morons who wrote it, 50 years ago,
> don't know HTML.  They ·think· they do, but they don't.
> 
> SpamAssassin doesn't properly parse HTML;

It complained:
| 
| HTML-only message... but there is no HTML tag !

Most likely it parses as HTML only what is enclosed within <html></html>
Tags. The HTML standard says [1]:
| 
| An html element's start tag can be omitted if the first thing inside
| the html element is not a comment.
| 
| An html element's end tag can be omitted if the html element is not
| immediately followed by a comment.

Similar rules are defined for <head> and <body>. Therefore the correct
way to parse is by using the type definition from the "Content-Type"
header field and not relying on the <html> start tag.

> no wonder it can't tell what's spam or not.

Yes, it can't. But it can tell what looks like spam (if configured
accordingly). And therefore the behaviour you criticize is very
likely intended exactly as it works.


[Xpost reduced to nsr (but still OT here)]

______________
[1] http://www.w3.org/TR/html5/semantics.html#the-html-element
Technical Details
Message-ID: <AABU2yZ0Bu4AAAN2.A1.flnews@WStation2.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20150219.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <Jeff-Relf.Me@Feb.9{3.35P.Seattle.2015}> <slrnmdiq75.vcd.g.kreme@kreme.eternal-september.org> <Jeff-Relf.Me@Feb.9{8.11P.Seattle.2015}> <54d9e084$1@news.ausics.net> <Jeff-Relf.Me@Feb.10{4.28A.Seattle.2015}> <54daf2b9$1@news.ausics.net> <Jeff-Relf.Me@Feb.11{1.07A.Seattle.2015}>

Show Full Headers
Complete Article Headers
Message-ID: <AABU2yZ0Bu4AAAN2.A1.flnews@WStation2.stz-e.de>
Subject: Re: SpamAssassin doesn't properly parse HTML.
Date: Wed, 11 Feb 2015 10:15:41 +0000
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <Jeff-Relf.Me@Feb.9{3.35P.Seattle.2015}> <slrnmdiq75.vcd.g.kreme@kreme.eternal-september.org> <Jeff-Relf.Me@Feb.9{8.11P.Seattle.2015}> <54d9e084$1@news.ausics.net> <Jeff-Relf.Me@Feb.10{4.28A.Seattle.2015}> <54daf2b9$1@news.ausics.net> <Jeff-Relf.Me@Feb.11{1.07A.Seattle.2015}>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20150219.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: STZ Elektronik
Lines: 38
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net lUG+KF+y5UJNYGKXByU30AWl4/3eVQB1HB4/Hvowu21LWEOE1L
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:6w8/msd8DXAZpw5C3wp7P6h/6t8=
 sha1:wSFC9H7Ai8DpAUcQlII9fNQ7gp8=
Injection-Date: 11 Feb 2015 10:15:41 -0000
User-Agent: flnews/0.10pre29 (for NetBSD)
Archive: no