[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] illegal headers



Mike Vanecek schrieb am 2004-03-24:

> Have not seen this before, but thought I would mention it just in case ...
> 
> Running latest rc.
> 
> Mar 24 09:47:20 www fetchnews[23409]: illegal article:
> /var/spool/news/microsoft/public/frontpage/extensions/unix/1218
> Mar 24 09:47:20 www fetchnews[23409]: error: article
> /var/spool/news/microsoft/public/frontpage/extensions/unix/1218 contained
> illegal headers

Well, the corresponding logging that describes the problem in detail is
at "debug" severity level and hence requires you to set debugmode=1 and
possibly adjust syslog.conf so it captures "debug" severity logging to
some file.

An article is considered "illegal" when it contains control characters
(assuming a header character set of ISO-8859-*); the valid ISO-8859-*
range is 9 (TAB), 32 (BLANK), 33...126 (printable ASCII) and 160...255
(printable ISO-8859-*). So if the article has had "typographic" quote
marks or a Euro sign in the subject or From: header, it will have been
killed. Accepting 160...255 is already a concession, strict syntax
requirements demand that headers be only US-ASCII and fit into 7bit.
RFC-2047 then documents how to encode.
(That's legacy soon, for Usefor is heading towards UTF-8.)

It is also considered illegal when one of the From:, Date:, Subject: or
Message-ID: headers is missing or the article has no body.

I chose to use only DEBUG level to avoid spamming the logs when some
bloke dumps a thousand malformatted articles. I need to think about
this.

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/