🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.misc
Article #2324

Re: remove unwanted headers ??

#2324
From: J.B. Moreno
Date: Mon, 06 Nov 2000 00:00
33 lines
2268 bytes
Colin Watson <cjw44@flatline.org.uk> wrote:

> aclexports@usa.net wrote:
-snip-
> >My problem is linewrapping.
> >How do I make sure I don't chop off a header that i want to retain ?
> >Which of these headers have a possibility of linewrapping  ?
> 
> Read RFC822: you can fold headers onto multiple lines wherever
> linear-white-space is permitted (most places where a space is
> permitted).
> 
> Don't hack it for specific headers. Do it properly instead. Anywhere you
> see a CRLF followed by a space or tab character, unfold it by replacing
> that pair of characters by a single space or tab character respectively.
> You can't have a CRLF in the middle of a header unless it's followed by
> a linear-white-space-character, and you can't have a header name
> beginning with a space or a tab, so there's no ambiguity.

There is a bit of ambiguity, that the current folding standard fixes,
namely -- how do you maintain more than one space or tab character in
the cases where that is important (such as in the Subject)?

The answer is simple -- the new standard requires the addition/removal
of /just/ the CRLF.  So if you have a header that is "blah<sp><sp>blah2"
and you want to fold that you can do either "blah<sp><CRLF><sp>blah2"
or "blah<CRLF><sp><sp>blah2".

-- 
JBM
"Moebius strippers only show you their back side." -- Unknown

Technical Details
Message-ID: <1ejoxbi.rnlpn4v1jxwkN%planb@newsreaders.com>
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: <3a06d674.1608299@news.alt.net> <8u6qii$cc7$1@riva.ucam.org>

Show Full Headers
Complete Article Headers
Message-ID: <1ejoxbi.rnlpn4v1jxwkN%planb@newsreaders.com>
Subject: Re: remove unwanted headers ??
Date: Mon, 06 Nov 2000 00:00:00 +0000
From: planb@newsreaders.com (J.B. Moreno)
References: <3a06d674.1608299@news.alt.net> <8u6qii$cc7$1@riva.ucam.org>
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: 690519093
Mail-Copies-To: nobody
X-ACLA-Charter: <http://www.deja.com/msgid.xp?MID=%3Cphenix-121119981748546229@roxboro0-023.dyn.interpath.net%3E&ST=&AH=1>
X-Trace: fu-berlin.de 973559981 1196177 207.59.121.50 (16 [22426])
X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h
Organization: NetNews BOFH wannabe
User-Agent: MacSOUP/2.4.4
Newsgroups: news.software.readers,news.software.nntp,news.software.misc