🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88637

Re: INN/inews behavior on \r\n

#88637
From: Russ Allbery
Date: Fri, 26 Feb 2021 20:51
16 lines
1536 bytes
Russ Allbery <eagle@eyrie.org> writes:

> It may make sense to check if the first line of the input ends in \r\n
> and, if so, call wire_to_native on the input buffer before processing
> it.  inews isn't really designed to accept arbitrary line endings, but
> it looks easy enough to make it compatible with CRLF line endings.

Oh, wait, no, this doesn't work because wire_to_native expects
dot-stuffing and a terminating dot.  Bleh.  We'd have to actually teach
inews about \r\n as a line ending.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87eeh2h7rz.fsf@hope.eyrie.org>
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
References: <s1715o$e99$1@dont-email.me> <s17ahp$2a8u$1@gal.iecc.com> <s1bm5h$dp7$1@dont-email.me> <87im6eh7vb.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <87eeh2h7rz.fsf@hope.eyrie.org>
Subject: Re: INN/inews behavior on \r\n
Date: Fri, 26 Feb 2021 12:51:44 -0800
From: Russ Allbery <eagle@eyrie.org>
References: <s1715o$e99$1@dont-email.me> <s17ahp$2a8u$1@gal.iecc.com> <s1bm5h$dp7$1@dont-email.me> <87im6eh7vb.fsf@hope.eyrie.org>
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: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="1044"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:FRUXxzoZvpHsmjE5MA8lI5no/OU=