🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #23904

Re: Another mangled QP header

#23904
From: Martin Schmachtel
Date: Mon, 08 Jul 1996 00:00
70 lines
2988 bytes
In article <4ro9ed$pbe@mn5.swip.net>, Jan D. wrote:
>In article <slrn4tskta.qn.schmadde@schmadde.isdn.fu-berlin.de>,
>Martin Schmachtel <schmacht@inf.fu-berlin.de> wrote:
>
>It must be delimited by whitespace, that is correct and that is the error
>of this example.  A correct encoding would be:
>
> Subject: =?iso-8859-1?Q?Kaffet=E5r? Kaffeg=F6k? Kafferep? Fika?k? Kafferep??=
>
>But an encoded word may contain whitespace, like in this case.

What makes you think so?

>RFC 1522:
>
>   encoded-text = 1*<Any printable ASCII character other
>                     than "?" or SPACE>

Ah, there we have it! whitespace is not allowed in encoded text (and 
neither are the question marks, btw.).

>                     ; (but see "Use of encoded-words in message
>                     ; headers", section 5)

unfortunately you quoted a portion of section 5 that says nothing about
the allowed characters in encoded text.
>
>RFC 1522, Section 5:
>
>   (1) An encoded-word may replace a "text" token (as defined by RFC
                            ^^^^^^^
Yes, it may replace a text token, but I don't see why this necessarily
means that it must have the same syntax.
This subsection only talks about where an encoded word is allowed at all.

I believe this reference merely means a further restriction which is 
made in subsection 2:

  (2) An encoded-word may appear within a comment delimited by "(" and
       ")", i.e., wherever a "ctext" is allowed.  More precisely, the
       RFC 822 ABNF definition for "comment" is amended as follows:
 
       comment = "(" *(ctext / quoted-pair / comment / encoded-word) ")"
 
       A "Q"-encoded encoded-word which appears in a comment MUST NOT
       contain the characters "(", ")" or " encoded-word that appears in
       a "comment" MUST be separated from any adjacent encoded-word or
       "ctext" by linear-white-space.

So you must not use the characters (, ) or " within a comment (defined in
rfc 822).

>QED :-)

Hmm. I don't see it. Please point out any errors of mine if you can.

[... Mozilla ...]

>No, still wrong in b5.  But they are aware of the problems, so maybe
>in b6 :-)

Yes, just tried it yesterday. Are you sure they know about it?

ciaole
schmadde



Technical Details
Message-ID: <4rqmdm$4bb@fu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <31D8ED68.5006@jmk.su.se> <4rcdes$750@epimetheus.algonet.se> <slrn4tskta.qn.schmadde@schmadde.isdn.fu-berlin.de> <4ro9ed$pbe@mn5.swip.net>

Show Full Headers
Complete Article Headers
Message-ID: <4rqmdm$4bb@fu-berlin.de>
Subject: Re: Another mangled QP header
Date: Mon, 08 Jul 1996 00:00:00 +0000
From: schmacht@inf.fu-berlin.de (Martin Schmachtel)
References: <31D8ED68.5006@jmk.su.se> <4rcdes$750@epimetheus.algonet.se> <slrn4tskta.qn.schmadde@schmadde.isdn.fu-berlin.de> <4ro9ed$pbe@mn5.swip.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 167164909
Organization: Freie Universität Berlin
X-access: 16 17 19
Newsgroups: news.software.readers