Article View: news.software.nntp
Article #88635Re: INN/inews behavior on \r\n
From: Mike Glover
Date: Fri, 26 Feb 2021 20:37
Date: Fri, 26 Feb 2021 20:37
22 lines
1509 bytes
1509 bytes
John Levine <johnl@taugh.com> wrote:
> inews is not nntp just as sendmail is not smtp. Both run inside your Unix
> system and use the Unix \n line terminator. If you were opening a TCP
> connection to port 119 and issuing nntp commands, then you would use \r\n
> as RFC 3877 says.
Point taken.
>
> In python3, email.message normally uses \n line terminators unless you
> tell it to use the email.policy.SMTP or email.policy.SMTPUTF8 policy
> option. So don't do that. If you're still using python2, this would
> be a good time to upgrade.
>
It's python3, and I *was* using email.policy.SMTP. Removing that and my
.replace('\r\n', '\n') kludge is working. Thanks.
But, still, what's the benefit to treating \r as folding whitespace in
this case?
-mg
Technical Details
Message-ID:
<s1bm5h$dp7$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-mailReferences:
<s1715o$e99$1@dont-email.me> <s17ahp$2a8u$1@gal.iecc.com>Show Full Headers
Complete Article Headers
Message-ID: <s1bm5h$dp7$1@dont-email.me>
Subject: Re: INN/inews behavior on \r\n
Date: Fri, 26 Feb 2021 20:37:08 +0000
From: Mike Glover <mglover@pobox.com>
References: <s1715o$e99$1@dont-email.me> <s17ahp$2a8u$1@gal.iecc.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: 22
Injection-Date: Fri, 26 Feb 2021 20:37:08 -0000 (UTC)
User-Agent: tin/2.3.2-20151224 ("Glenavullen") (UNIX) (Linux/4.4.0-171-generic (x86_64))
Cancel-Lock: sha1:2XWxKxllUM7Gq3tFOxsU+D28vCs=