🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Erland Sommarskog Wed, 03 Jul 1996 00:00
Another mangled QP header
#23686
Author: Erland Sommarskog
Date: Wed, 03 Jul 1996 00:00
30 lines
1760 bytes
Per Abrahamsen likes to claim that QP is easy, here's another example
taht it's not. Either the newsreader have fucked up, or it is too
complex to understand it. (But I'm just waiting to Per tell us that
whichever it is, it doesn't count, just as he did with Fido.) What
the hell does "=k?" mean?


   Path: news.algonet.se!eua.ericsson.se!news.sics.se!newsfeed.sunet.se!news01.sunet.se!sunic!news99.sunet.se!news.datakom.su.se!usenet
   From: xxxxxxx@jmk.su.se
   Newsgroups: swnet.svenska
   Subject: Kaffet=?iso-8859-1?Q?=E5r? Kaffeg=F6k? Kafferep? Fika??=k? Kafferep? Fika?
   Date: Tue, 02 Jul 1996 11:35:38 +0200
   Organization: Stockholm University
   Lines: 19
   Message-ID: <31D8ED68.5006@jmk.su.se>
   NNTP-Posting-Host: xxxxxx.jmk.su.se
   Mime-Version: 1.0
   Content-Type: text/plain; charset=iso-8859-1 
   Content-Transfer-Encoding: quoted-printable
   X-Mailer: Mozilla 3.0b4 (Macintosh; I; 68K)
   Status: N

Erland Sommarskog, sommar@algonet.se, Stockholm
--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Re: Another mangled QP header
#23800
Author: Martin Schmachtel
Date: Sat, 06 Jul 1996 00:00
25 lines
1297 bytes
In <4rcdes$750@epimetheus.algonet.se>, Erland Sommarskog <sommar@algonet.se> wrote:

>   Subject: Kaffet=?iso-8859-1?Q?=E5r? Kaffeg=F6k? Kafferep? Fika??=k? Kafferep?

I don't know what this should be, but it's definitely not a valid encoding
according to rfc 1522. the encoded word has to be delimited by whitespace
and inside an encoded word whitespace is not allowed.

The Problem seems so be here:

>   X-Mailer: Mozilla 3.0b4 (Macintosh; I; 68K)

Jamie Zawinsky claimed he had reworked his MIME code in 3.0b5 -
I hope he got it right this time

ciaole
schmadde

-- 
http://userpage.fu-berlin.de/~huette/prenzlnet/
Check it out!


Re: Another mangled QP header
#23829
Author: Jan D.
Date: Sun, 07 Jul 1996 00:00
61 lines
2658 bytes
In article <slrn4tskta.qn.schmadde@schmadde.isdn.fu-berlin.de>,
Martin Schmachtel <schmacht@inf.fu-berlin.de> wrote:
> In <4rcdes$750@epimetheus.algonet.se>, Erland Sommarskog <sommar@algonet.se> wrote:
> 
> >   Subject: Kaffet=?iso-8859-1?Q?=E5r? Kaffeg=F6k? Kafferep? Fika??=k? Kafferep?
> 
> I don't know what this should be, but it's definitely not a valid encoding
> according to rfc 1522. the encoded word has to be delimited by whitespace
> and inside an encoded word whitespace is not allowed.
> 

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.

RFC 1522:

   encoded-text = 1*<Any printable ASCII character other
                     than "?" or SPACE>
                     ; (but see "Use of encoded-words in message
                     ; headers", section 5)

RFC 1522, Section 5:

   (1) An encoded-word may replace a "text" token (as defined by RFC
       822) in any Subject or Comments header field, any extension
       message header field, or any RFC 1521 body part field for which
       the field body is defined as "*text".  An encoded-word may also
       appear in any user-defined ("X-") message or body part header
       field.

RFC 822:

     text        =  <any CHAR, including bare    ; => atoms, specials,
                     CR & bare LF, but NOT       ;  comments and
                     including CRLF>             ;  quoted-strings are

     CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)


QED :-)

> The Problem seems so be here:
> 
> >   X-Mailer: Mozilla 3.0b4 (Macintosh; I; 68K)
> 
> Jamie Zawinsky claimed he had reworked his MIME code in 3.0b5 -
> I hope he got it right this time
> 

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

	Jan D.


Re: Another mangled QP header
#23833
Author: Erland Sommarskog
Date: Sun, 07 Jul 1996 00:00
17 lines
1288 bytes
Ha scritto Per Abrahamsen <abraham@dina.kvl.dk>:
>Last time I stated that the "QP is easy" quote was referring to the way
>it is defined in RFC 1521, not how it is used in RFC 1522.
>
>I don't see why this example should change that position.

Well, excuse me. I don't keep track of all these RFC numbers. Particularly
not those that define junk. It may not be called QP when it's in the header,
but it's junk nevertheless. And error-prone.

--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Re: Another mangled QP header
#23877
Author: Erland Sommarskog
Date: Sun, 07 Jul 1996 00:00
17 lines
1167 bytes
Ha scritto schmacht@inf.fu-berlin.de:
>Jamie Zawinsky claimed he had reworked his MIME code in 3.0b5 -
>I hope he got it right this time

And I hope that by now that on the Mac if you say "Allow 8-bit" it
will use 8-bit also in the header, as Netscape already does on the
PC.

(Jaime, are you there? :-)

--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Re: Another mangled QP header
#23904
Author: 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



Re: Another mangled QP header
#23914
Author: Jan D.
Date: Mon, 08 Jul 1996 00:00
32 lines
1516 bytes
In article <4rqmdm$4bb@fu-berlin.de>,
Martin Schmachtel <schmacht@inf.fu-berlin.de> wrote:
> In article <4ro9ed$pbe@mn5.swip.net>, Jan D. wrote:
> >
> >But an encoded word may contain whitespace, like in this case.
> 
> 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.

OK, I see your point.  I stand corrected.

> [... 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?
> 

Well, I pointed it out to Jamie Zawinski in a mail and got a reply
back where he acknowledged they had some bugs.

Of course, he didn't mention any release where it will be fixed.

	Jan D.




Re: Another mangled QP header
#24180
Author: Erland Sommarskog
Date: Tue, 16 Jul 1996 00:00
41 lines
2000 bytes
Thus quoth Jamie Zawinski <jwz@netscape.com>:
>Are you saying that Mac and PC do things differently?  They shouldn't.
>...
>
>  = else, there will be 8-bit non-ASCII characters in the header.

Here's an example where this does not happen. This is Netscape 2, though.
Has this been fixed in Netscape 3 for the Mac?


   Path: ...
   From: marten@landstrom.pp.se
   Newsgroups: swnet.musik,swnet.pryltorg
   Subject: K=?iso-8859-1?Q?=F6pes: Flags av Moraz & Bruford p=E5 CD?=
   Date: Sun, 07 Jul 1996 20:08:04 +0200
   Organization: Stockholm
   Lines: 6
   Message-ID: <31DFFD04.3175@landstrom.pp.se>
   Reply-To: marten@landstrom.pp.se
   NNTP-Posting-Host: t9o1p8.telia.com
   Mime-Version: 1.0
   Content-Type: text/plain; charset=iso-8859-1
   Content-Transfer-Encoding: 8bit
   X-Mailer: Mozilla 2.01 (Macintosh; I; PPC)
   Xref: news.algonet.se swnet.musik:803 swnet.pryltorg:4664
   Status: N

   Hej,

   jag undrar om det �r n�gon som har denna i sin �go och kan t�nka sig att 
   skiljas fr�n den mot ers�ttning?

   /m�rten

--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Re: Another mangled QP header
#24193
Author: õ���� NEWS GROUP �̿���
Date: Wed, 17 Jul 1996 00:00
42 lines
2108 bytes
Erland Sommarskog (sommar@algonet.se) wrote:
: Thus quoth Jamie Zawinski <jwz@netscape.com>:
: >Are you saying that Mac and PC do things differently?  They shouldn't.
: >...
: >
: >  = else, there will be 8-bit non-ASCII characters in the header.

: Here's an example where this does not happen. This is Netscape 2, though.
: Has this been fixed in Netscape 3 for the Mac?


:    Path: ...
:    From: marten@landstrom.pp.se
:    Newsgroups: swnet.musik,swnet.pryltorg
:    Subject: K=?iso-8859-1?Q?=F6pes: Flags av Moraz & Bruford p=E5 CD?=
:    Date: Sun, 07 Jul 1996 20:08:04 +0200
:    Organization: Stockholm
:    Lines: 6
:    Message-ID: <31DFFD04.3175@landstrom.pp.se>
:    Reply-To: marten@landstrom.pp.se
:    NNTP-Posting-Host: t9o1p8.telia.com
:    Mime-Version: 1.0
:    Content-Type: text/plain; charset=iso-8859-1
:    Content-Transfer-Encoding: 8bit
:    X-Mailer: Mozilla 2.01 (Macintosh; I; PPC)
:    Xref: news.algonet.se swnet.musik:803 swnet.pryltorg:4664
:    Status: N

:    Hej,

:    jag undrar om det �r n�gon som har denna i sin �go och kan t�nka sig att 
:    skiljas fr�n den mot ers�ttning?

:    /m�rten

: --
: Erland Sommarskog, Stockholm, sommar@algonet.se
: F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
: B=65sid=65s, I think QP should b=65 d=65stroy=65d.

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