🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Patrick Lamaizière Sun, 09 Mar 2003 14:20
[XanaNews] Bugs with MIME
#121557
Author: Patrick Lamaizière
Date: Sun, 09 Mar 2003 14:20
26 lines
1940 bytes
Hi all, 

There are some bugs with MIME features in XanaNews(1.14.1.1).

- Encoded words (RFC2047) must not contain a space, for example :

"� �" is encoded to : =?iso-8859-1?Q?=E9 =E0?= 

It is not correct. It should be : 

=?iso-8859-1?Q?=E9=20=E0?= or =?iso-8859-1?Q?=E9_=E0?=

Encoded words can't be in a quoted string, so i think that 
"Patrick =?iso-8859-1?Q?Lamaizi=E8re?=" is not correct (i'm not sure, 
to confirm).

- Content-Transfer-Encoding: 8bit header is missing when i use 8 bits 
characters.

- The quoted-printable encoding (text style part, MIME quoted-
printable) doesn't encode anything.

Best regards.
-- 
Patrick
Re: [XanaNews] Bugs with MIME
#121571
Author: Colin Wilson
Date: Sun, 09 Mar 2003 19:14
60 lines
2876 bytes
Patrick Lamaizi�re wrote:

> Hi all, 
> 
> There are some bugs with MIME features in XanaNews(1.14.1.1).
> 
> - Encoded words (RFC2047) must not contain a space, for example :
> 
> "� �" is encoded to : =?iso-8859-1?Q?=E9 =E0?= 
> 
> It is not correct. It should be : 
> 
> =?iso-8859-1?Q?=E9=20=E0?= or =?iso-8859-1?Q?=E9_=E0?=

Thanks - it will be fixed in 1.14.1.2

> Encoded words can't be in a quoted string, so i think that 
> "Patrick =?iso-8859-1?Q?Lamaizi=E8re?=" is not correct (i'm not sure, 
> to confirm).

That's fine - but if your name was 'Patrick F. Lamaizi�re' you've got a
dilema.

1.  I could encode it as 'Patrick F. =?iso-8859-1?Q?Lamaizi=E8re?=' -
which would break the USEFOR requirement that strings containing '.'
must be quoted and utf-8 encoded.

2.  I could send ' "Patrick F. Lamaizière" ' (utf-8 encoded) - which
is correct according to USEFOR.  But I suspect other news clients
wouldn't correctly decode it.

3.  I could Q encode the quotes at the start and end of the name, but
that seems to contradict RFC 2047.

4.  I could leave it as at it is - (which breaks RFC 2047's requirement
that + An 'encoded-word' MUST NOT appear within a 'quoted-string'.
 
> - Content-Transfer-Encoding: 8bit header is missing when i use 8 bits 
> characters.

Thanks - it will be fixed in 1.14.1.2

 
> - The quoted-printable encoding (text style part, MIME quoted-
> printable) doesn't encode anything.

Hmmm - it used to work, but you're right - it's broken at the moment.
It will be fixed in 1.14.1.2


-- 
Colin

Creator of XanaNews & XanaNewz!

web: www.wilsonc.demon.co.uk/delphi.htm
mail: colin@wilsonc.demon.co.uk

Posted with Xananews 1.14.1.1
Re: [XanaNews] Bugs with MIME
#121573
Author: Patrick Lamaizière
Date: Sun, 09 Mar 2003 21:18
33 lines
2271 bytes
Colin Wilson wrote :

Hi,

> 2.  I could send ' "Patrick F. Lamaizière" ' (utf-8 encoded) -
> which is correct according to USEFOR.  But I suspect other news
> clients wouldn't correctly decode it.

I think USEFOR is only a draft ? May be i'm wrong, but i don't know any 
newsreader who can decode it.

> 3.  I could Q encode the quotes at the start and end of the name,
> but that seems to contradict RFC 2047.

"Patrick P. Lamaizi�re" <email> =>
=?iso?Q?Patrick_P=2E_Lamaizi=E8re?= <email> is correct. Where is the 
contradiction ? 

An encoded-word is an atom, so we don't need the quote at start and at 
end here. If the user puts some quote or other characters like .(', 
..., in his name, you should encode them in QP.

An option to switch off RFC 2047 encoding would be great, because on 
fr.* we don't use this encoding. We use raw iso-8859-1.

> Hmmm - it used to work, but you're right - it's broken at the
> moment. It will be fixed in 1.14.1.2

Thanks a lot, regards.

-- 
Patrick
Re: [XanaNews] Bugs with MIME
#121574
Author: Russ Allbery
Date: Sun, 09 Mar 2003 21:34
16 lines
1688 bytes
Colin Wilson <colin@wilsonc.demon.co.uk> writes:

> 1.  I could encode it as 'Patrick F. =?iso-8859-1?Q?Lamaizi=E8re?=' -
> which would break the USEFOR requirement that strings containing '.'
> must be quoted and utf-8 encoded.

> 2.  I could send ' "Patrick F. Lamaizière" ' (utf-8 encoded) - which is
> correct according to USEFOR.  But I suspect other news clients wouldn't
> correctly decode it.

This part of USEFOR is a very preliminary proposal that few people
actually implement yet and which is highly controversial.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: [XanaNews] Bugs with MIME
#121577
Author: Dirk Nimmich
Date: Sun, 09 Mar 2003 22:54
57 lines
3254 bytes
Colin Wilson wrote:
> Patrick Lamaizi�re wrote:
>> Encoded words can't be in a quoted string, so i think that 
>> "Patrick =?iso-8859-1?Q?Lamaizi=E8re?=" is not correct (i'm not sure, 
>> to confirm).
> 
> That's fine - but if your name was 'Patrick F. Lamaizi�re' you've got a
> dilema.

There is no dilema. Patrick =?ISO-8859-1?Q?F=2E_Lamaizi=E8re?= is
perfectly well encoded according to RFC 2047. Patrick "F."
=?ISO-8859-1?Q?Lamaizi=E8re?= would be ok, too.


This is my algorithm for encoding words (translated from a former
posting to a German speaking newsgroup), for review:

For every word determine
- the length of that word
- if it contains non-atext characters (see RFC 2822)
- if it contains non-ASCII characters

Now, if there are only atext characters, output everything as is and
return.

If there are only ASCII characters, output everything as a quoted-
string (i.e., do neccessary quoting) and return.

Everything from now on has at least one encoded-word in it. As a
result, no line must be longer than 76 characters. In consequence,
there may be words (namely all that are longer than 75 chars) that
must be encoded that otherwise would not have been encoded. (That's
why we count the length of words above.)

For every word now do the following:

* if the word contains only atext and is shorter than 75 chars:
  - end previous encoded-word, if any (output MIME-Suffix)
  - if the word doesn't fit in the current line, fold the line
  - output word, continue with next word

* if previous word was an open encoded-word, MIME-output a SP and
  the word, continue with next word

* if MIME prefix (=?<charset>?Q?) + MIME suffix (?=) + 3 additional
  characters don't fit in the current line, fold the line

* output MIME prefix, MIME-output word, continue with next word

If the last word was an open encoded-word, end it (output
MIME suffix).

MIME-output is a function that outputs the word in quoted-printable
format and folds the line where necessary (including ending encoded-
words and starting new ones in the new line).

Re: [XanaNews] Bugs with MIME
#121641
Author: J.B. Moreno
Date: Mon, 10 Mar 2003 21:29
15 lines
1520 bytes
Colin Wilson <colin@wilsonc.demon.co.uk> wrote:

> 2.  I could send ' "Patrick F. Lamaizière" ' (utf-8 encoded) - which
> is correct according to USEFOR.  But I suspect other news clients
> wouldn't correctly decode it.

Other clients would -- I just tested two (MacSOUP and OE for the Mac),
both decoded it correctly, without any input from me.

(The message is in alt.test, <100320031607119455%planb@newsreaders.com>).

-- 
JBM
"Everything is futile." -- Marvin of Borg
Re: [XanaNews] Bugs with MIME
#121655
Author: J.B. Moreno
Date: Tue, 11 Mar 2003 00:42
23 lines
1836 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Colin Wilson <colin@wilsonc.demon.co.uk> writes:
> 
> > 1.  I could encode it as 'Patrick F. =?iso-8859-1?Q?Lamaizi=E8re?=' -
> > which would break the USEFOR requirement that strings containing '.'
> > must be quoted and utf-8 encoded.
> 
> > 2.  I could send ' "Patrick F. Lamaizière" ' (utf-8 encoded) - which is
> > correct according to USEFOR.  But I suspect other news clients wouldn't
> > correctly decode it.
> 
> This part of USEFOR is a very preliminary proposal that few people
> actually implement yet and which is highly controversial.

At least for posting -- for reading, both MS and NS support it.

(But I can't deny the controversy).

-- 
JBM
"Everything is futile." -- Marvin of Borg
Re: [XanaNews] Bugs with MIME
#121664
Author: Ted S.
Date: Tue, 11 Mar 2003 03:02
24 lines
1843 bytes
Somebody claiming to be "Ch.Esperado" <ch.esperado@hamster-fr.org> wrote
in news:XnF933A30741F5DDesperado@Hamster-fr.org: 

> Le dim. 09 mars 2003 20:14:22 � "Colin Wilson"
> <colin@wilsonc.demon.co.uk> � s'est dit: "tiens, je vais �crire �a": 
> news:1047237262.60659.0@doris.uk.clara.net
> 
>> Thanks - it will be fixed in 1.14.1.2
> 
> Well, i have a problem with the 1.14.1.1, using Hamster as a server on
> the same machine: Xana dont seem to connect on port 119 with *no
> connexion*. the name of my server is, of course, Localhost, or
> 127.0.0.1. Tried everything with no success: Hamster do not seem to
> receive any order. 
> 

Dammit, you beat me to the punch by 2-1/2 hours!  :-)

-- 
Ted S.: change .spam to .net to reply by e-mail
In future, I'd like my bribes in a nondescript briefcase instead of this 
sack with a dollar sign on it.
--Diamond Joe Quimby  <http://www.snpp.com/episodes/AABF05.html>
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