Article View: news.software.nntp
Article #88633INN/inews behavior on \r\n
From: mg
Date: Thu, 25 Feb 2021 02:14
Date: Thu, 25 Feb 2021 02:14
24 lines
1602 bytes
1602 bytes
I'm developing some python scripts to implement an NNTP/WordPress gateway, and I ran into unexpected behavior (and a less than helpful error message) from inews. INN is from the inn2-2.6.0-2 package through apt on linux mint. Python's email.message module creates messages that (by default? I wasn't able to find a setting for this) terminate lines with \r\n (CRLF). Feeding those messages to 'inews -h -O' produces the error message (from memory) "No space after colon in <the first line of the article body>". Digging into the source code (latest version, online), it seems that inews is treating the \r character as folding whitespace? Converting the \r\n to \n in the message solved the problem, but: Is this really the correct behavior? I'm looking at RFCs 5322 and 5536 here... Also, a more specific/helpfull error message would have saved me considerable debugging time. INN devs, is this possible? Thanks! -mg
Technical Details
Message-ID:
<s1715o$e99$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <s1715o$e99$1@dont-email.me>
Subject: INN/inews behavior on \r\n
Date: Thu, 25 Feb 2021 02:14:19 +0000
From: mg <mglover@pobox.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient Spider
Lines: 24
Injection-Date: Thu, 25 Feb 2021 02:14:19 -0000 (UTC)
User-Agent: tin/2.3.2-20151224 ("Glenavullen") (UNIX) (Linux/4.4.0-171-generic (x86_64))
Cancel-Lock: sha1:SXG9p2SJDrmVxa//U832a0BV3U4=