🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39981

Re: Tab characters and newlines in subject lines

#39981
From: Russ Allbery
Date: Sun, 19 Sep 1999 00:00
25 lines
1608 bytes
Bob Crispen <crispen@hiwaay.net> writes:

> But what about subject lines you get using HEAD?  Do I need to scan them
> and detab them?

Yes, if you don't want tabs in them.  The server should return the literal
header of the article, which is permitted to contain tabs.

> And wrt newlines in subject lines, is it always true that a news host
> will put a space in position 0 of the following line?

No.  It can put a tab there instead.  It has to use one or the other,
though; I'm pretty sure that those are the only forms of whitespace
supported by the standard.  (Note for those people writing news software:
Don't use isspace() to check for whitespace.  Even if you've worked around
the fact that it returns true on newlines and carriage returns, it returns
true on vertical tabs and form feeds, neither of which are acceptable
whitespace characters in news headers.)  See RFC 822:

     LWSP-char   =  SPACE / HTAB                 ; semantics = SPACE

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylhfkqfa2y.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <37E5B902.BA9A4BCE@hiwaay.net>

Show Full Headers
Complete Article Headers
Message-ID: <ylhfkqfa2y.fsf@windlord.stanford.edu>
Subject: Re: Tab characters and newlines in subject lines
Date: Sun, 19 Sep 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <37E5B902.BA9A4BCE@hiwaay.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 527310820
Organization: The Eyrie
Newsgroups: news.software.nntp