Thread View: news.software.nntp
2 messages
2 total messages
Started by Bob Crispen
Sun, 19 Sep 1999 00:00
Tab characters and newlines in subject lines
Author: Bob Crispen
Date: Sun, 19 Sep 1999 00:00
Date: Sun, 19 Sep 1999 00:00
16 lines
1237 bytes
1237 bytes
Pretty obviously (I think), if you get a subject line from a news host using XOVER, there shouldn't be any tab characters embedded in that line. But what about subject lines you get using HEAD? Do I need to scan them and detab them? 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? -- Bob Crispen crispen at hiwaay dot net What we're looking for: destinations. What we end up getting: journeys.
Re: Tab characters and newlines in subject lines
Author: Russ Allbery
Date: Sun, 19 Sep 1999 00:00
Date: Sun, 19 Sep 1999 00:00
25 lines
1608 bytes
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/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads