🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
32 messages
32 total messages Started by The Archiver Wed, 06 Feb 2002 08:41
Trailing spaces in body on INN 2.3.3 ?
#56321
Author: The Archiver
Date: Wed, 06 Feb 2002 08:41
29 lines
1875 bytes
I've been notified that a newsserver (xnews.arcor.de) which is
running  INN 2.3.3  is removing trailing spaces at the end of a 
text-line in the body of a message.

This is of course FATAL for yEncoded messages.
If this is really true (and acceptable policy on Usenet)
then yEnc has to encode spaces as the last character in a line.

But until now I thought that a newsserver _must_ not change
the content of a message (body).

Is it possible that this is an effect only for MIME encoded
messages?  A third party programmer recognized this
problem. He is actually creating a news-poster which
posts yEnc embedded into MIME.

I dont know INN in so extreme details so your help 
would be highly appreciated.

I know that trailing spaces are a problem for eMail
- but also for news ?
Are there more of such problems ?
All 8bit encodings would have to respect and handle this!

TIA
-- 
Juergen, [The Archiver]

Re: Trailing spaces in body on INN 2.3.3 ?
#56330
Author: Russ Allbery
Date: Wed, 06 Feb 2002 16:45
22 lines
1858 bytes
The Archiver <archiver@i3w.com> writes:

> I've been notified that a newsserver (xnews.arcor.de) which is running
> INN 2.3.3 is removing trailing spaces at the end of a text-line in the
> body of a message.

INN 2.3.3 certainly should not be doing that.  I would consider that to be
a serious bug.  I'm curious if this is due to some sort of local
modifications to that server or if there is such a bug in INN itself, and
whether it happens on all transit articles or just on locally posted
articles.

> Is it possible that this is an effect only for MIME encoded messages?

I doubt it.  INN doesn't pay any attention to MIME encoding.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Trailing spaces in body on INN 2.3.3 ?
#56366
Author: Uwe Keller
Date: Fri, 08 Feb 2002 09:32
18 lines
1543 bytes
Juergen,

> I've been notified that a newsserver (xnews.arcor.de) which is
> running  INN 2.3.3  is removing trailing spaces at the end of a
> text-line in the body of a message.

The error was not caused by the last space in a line, but raised
by a dot in the first column (even if other characters follow)!

Nevertheless should the last space be encoded as a special character.
For example the quoted-printable format do it, too!

Regards,
Uwe



Re: Trailing spaces in body on INN 2.3.3 ?
#56378
Author: Russ Allbery
Date: Fri, 08 Feb 2002 19:05
17 lines
1599 bytes
Uwe Keller <uwe.keller@a-s-l.de> writes:

> The error was not caused by the last space in a line, but raised by a
> dot in the first column (even if other characters follow)!

Yes, the dot has to be escaped by the client.

> Nevertheless should the last space be encoded as a special character.

No, this is completely unnecessary for news.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Trailing spaces in body on INN 2.3.3 ?
#56379
Author: Uwe Keller
Date: Fri, 08 Feb 2002 19:55
12 lines
1451 bytes
Russ,

> > Nevertheless should the last space be encoded as a special character.
> No, this is completely unnecessary for news.

but why limit yEnc to NNTP only? Think about email...

Regards,
Uwee


Re: Trailing spaces in body on INN 2.3.3 ?
#56381
Author: Russ Allbery
Date: Fri, 08 Feb 2002 20:15
20 lines
1877 bytes
Uwe Keller <privat@uwekeller.de> writes:
> Russ,

>> > Nevertheless should the last space be encoded as a special character.
>> No, this is completely unnecessary for news.

> but why limit yEnc to NNTP only? Think about email...

It's completely unnecessary with most mail systems too.  It's certainly
completely unnecessary with any mail system that can handle all the other
stuff that yEnc does.  If it can't handle trailing whitespace, it isn't
going to be able to handle control characters either and you should just
use base64.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Trailing spaces in body on INN 2.3.3 ?
#56384
Author: J.B. Moreno
Date: Fri, 08 Feb 2002 21:52
15 lines
1565 bytes
In article <a405vd$huq$1@newsread4.arcor-online.net>,
 Uwe Keller <uwe.keller@a-s-l.de> wrote:

> Nevertheless should the last space be encoded as a special character.
> For example the quoted-printable format do it, too!

Right, but quoted-printable was a bad solution -- it was written to
solve a short lived problem, one that has pretty much passed by now.

For 8bit data, use an 8 bit path, for paragraph formatting, use
format=flowed.

-- 
J.B Moreno
Re: Trailing spaces in body on INN 2.3.3 ?
#56393
Author: The Archiver
Date: Sat, 09 Feb 2002 11:01
24 lines
1724 bytes
"Uwe Keller" <uwe.keller@a-s-l.de> wrote:

>> I've been notified that a newsserver (xnews.arcor.de) which is
>> running  INN 2.3.3  is removing trailing spaces at the end of a
>> text-line in the body of a message.
>
>The error was not caused by the last space in a line, but raised
>by a dot in the first column (even if other characters follow)!

Thanks to let me know.
This pitfall is common - and was the reason why I did propose
to encode also dots in yEnc :-)

>Nevertheless should the last space be encoded as a special character.
>For example the quoted-printable format do it, too!

Yes, this will be added to yEnc-Draft v2.0

-- 
Juergen, [The Archiver]



Re: Trailing spaces in body on INN 2.3.3 ?
#56395
Author: The Archiver
Date: Sat, 09 Feb 2002 11:04
19 lines
1671 bytes
Russ Allbery <rra@stanford.edu> wrote:

>> Nevertheless should the last space be encoded as a special character.

>No, this is completely unnecessary for news.

I'm sure that there is at least one newsreader which cuts off trailing spaces.
And if the encoding of spaces at the end of a line would make distribution
of messages over mail easier/better - and sometimes yEncoded posts
can be transferred over eMail (moderated groups, fills, ..) then we should
spent the few bytes to encode spaces in the last column. The overhead
would be negligable.

-- 
Juergen, [The Archiver]



Re: Trailing spaces in body on INN 2.3.3 ?
#56400
Author: Jesper Harder
Date: Sat, 09 Feb 2002 16:28
8 lines
1396 bytes
"J.B. Moreno" <planb@newsreaders.com> writes:

> Right, but quoted-printable was a bad solution -- it was written to
> solve a short lived problem, one that has pretty much passed by now.

Hmm, the problem of sending non-ascii chars in header lines hasn't
passed.  How would you do that without using an RFC 2047 encoding?
Re: Trailing spaces in body on INN 2.3.3 ?
#56402
Author: Russ Allbery
Date: Sat, 09 Feb 2002 21:18
28 lines
2203 bytes
The Archiver <archiver@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>>> Nevertheless should the last space be encoded as a special character.

>> No, this is completely unnecessary for news.

> I'm sure that there is at least one newsreader which cuts off trailing
> spaces.

There are at least several newsreaders that mangle high-bit characters.

> And if the encoding of spaces at the end of a line would make
> distribution of messages over mail easier/better - and sometimes
> yEncoded posts can be transferred over eMail (moderated groups, fills,
> ..) then we should spent the few bytes to encode spaces in the last
> column. The overhead would be negligable.

Mail has no more problems with this than news does.  Again, the use of a
wider range of characters inherent in the yEnc protocol will cause
considerably more problems than this.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Trailing spaces in body on INN 2.3.3 ?
#56406
Author: J.B. Moreno
Date: Sat, 09 Feb 2002 23:05
31 lines
2350 bytes
In article <2504c.922202@archiver.winews.net>, The Archiver
<archiver@i3w.com> wrote:

> Russ Allbery <rra@stanford.edu> wrote:
> 
> >> Nevertheless should the last space be encoded as a special character.
> 
> >No, this is completely unnecessary for news.
> 
> I'm sure that there is at least one newsreader which cuts off trailing spaces.

Do you mean news server?  If so I don't think it's likely to be a
signficant problem.  If you really did mean newsreader, then I don't
think it's a problem at all.

> And if the encoding of spaces at the end of a line would make distribution
> of messages over mail easier/better - and sometimes yEncoded posts
> can be transferred over eMail (moderated groups, fills, ..) then we should
> spent the few bytes to encode spaces in the last column. The overhead
> would be negligable.

Are you aware of RFC 2646?  It relies upon the preservation of trailing
spaces to do it's job in both mail and news.

This and other problems -- such as the high bits being stripped, while
not totally gone, are at the least on their way out.  The time to make
accommodations for them in standards has passed.

-- 
J.B Moreno
Re: Trailing spaces in body on INN 2.3.3 ?
#56407
Author: J.B. Moreno
Date: Sat, 09 Feb 2002 23:11
20 lines
1924 bytes
In article <m3sn8abowr.fsf@defun.localdomain>, 
 Jesper Harder <harder@myrealbox.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> writes:
> 
> > Right, but quoted-printable was a bad solution -- it was written to
> > solve a short lived problem, one that has pretty much passed by
> > now.
> 
> Hmm, the problem of sending non-ascii chars in header lines hasn't
> passed.  How would you do that without using an RFC 2047 encoding?

Check out the headers in this message, and you'll see that UTF8 in
headers pass quite satisfactory without use of 2047 encoding.

There even exist a newsgroup with a UTF8 name.

-- 
J.B Moreno
Re: Trailing spaces in body on INN 2.3.3 ?
#56425
Author: Jesper Harder
Date: Sun, 10 Feb 2002 03:36
34 lines
2584 bytes
"J.B. Moreno" <planb@newsreaders.com> writes:

>  Jesper Harder <harder@myrealbox.com> wrote:
>
>> "J.B. Moreno" <planb@newsreaders.com> writes:
>> 
>> > Right, but quoted-printable was a bad solution -- it was written to
>> > solve a short lived problem, one that has pretty much passed by
>> > now.
>> 
>> Hmm, the problem of sending non-ascii chars in header lines hasn't
>> passed.  How would you do that without using an RFC 2047 encoding?
>
> Check out the headers in this message, and you'll see that UTF8 in
> headers pass quite satisfactory without use of 2047 encoding.

No, they don't :-) 

In the absence of 2047-encoding my client has no way of knowing that
your headers should be interpreted as UTF-8.  Of course, I could
customize it to try UTF-8 as the default.  But that's not a practical
solution, because unencoded iso-8859-1 in headers is very common in my
locale.

UTF-8 is not going to be a substitute for RFC 2047 encoding for a long,
long time.  Ironically the reason is that a lot people *aren't* using
2047 in non-ascii headers -- if they did, I could switch to UTF-8 as the
default instead of Latin-1 without any drawbacks.

> There even exist a newsgroup with a UTF8 name.

Yeah, I know.  But the majority of news clients aren't able to display
the name correctly -- some are not even able to post to the group.
Re: Trailing spaces in body on INN 2.3.3 ?
#56427
Author: J.B. Moreno
Date: Sun, 10 Feb 2002 04:38
50 lines
3256 bytes
In article <m31yfuatyi.fsf@defun.localdomain>, 
 Jesper Harder <harder@myrealbox.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> writes:
> 
> >  Jesper Harder <harder@myrealbox.com> wrote:
-snip QP a bad idea- 
> >> Hmm, the problem of sending non-ascii chars in header lines hasn't
> >> passed.  How would you do that without using an RFC 2047 encoding?
> >
> > Check out the headers in this message, and you'll see that UTF8 in
> > headers pass quite satisfactory without use of 2047 encoding.
> 
> No, they don't :-) 

I bet they did.

> In the absence of 2047-encoding my client has no way of knowing that
> your headers should be interpreted as UTF-8.  Of course, I could
> customize it to try UTF-8 as the default.  But that's not a practical
> solution, because unencoded iso-8859-1 in headers is very common in my
> locale.

But the question wasn't would your newsreader display such a header
correctly, it was would it /arrive/ intact and unchanged.  I don't have
easy access to news.tele.dk, but I'm fairly sure that my message wasn't
corrupted in transit.

> UTF-8 is not going to be a substitute for RFC 2047 encoding for a long,
> long time.  Ironically the reason is that a lot people *aren't* using
> 2047 in non-ascii headers -- if they did, I could switch to UTF-8 as the
> default instead of Latin-1 without any drawbacks.

2047 encoding isn't really better than raw UTF8 even in the short term,
because of the clients that don't recognize it.

You're using GNUS, and if I'm not mistaken, it's adding UTF8 support so
that you won't have to "customize" anything, it'll just work.

> > There even exist a newsgroup with a UTF8 name.
> 
> Yeah, I know.  But the majority of news clients aren't able to display
> the name correctly -- some are not even able to post to the group.

Problems should be expected in the transition period, but in general it
seems to be working fairly well.

-- 
J.B Moreno
Re: Trailing spaces in body on INN 2.3.3 ?
#56432
Author: The Archiver
Date: Sun, 10 Feb 2002 08:04
20 lines
1574 bytes
Russ Allbery <rra@stanford.edu> wrote:

>Mail has no more problems with this than news does.  

Nice to know.

>Again, the use of a
>wider range of characters inherent in the yEnc protocol will cause
>considerably more problems than this.

If you would find the time to mention the few most important 
problems you're already aware of then we might consider
them when defining yEnc2.

TIA
-- 
Juergen, [The Archiver]


Re: Trailing spaces in body on INN 2.3.3 ?
#56431
Author: The Archiver
Date: Sun, 10 Feb 2002 08:14
48 lines
3135 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>> I'm sure that there is at least one newsreader which cuts off trailing spaces.
>
>Do you mean news server?  If so I don't think it's likely to be a
>signficant problem.  If you really did mean newsreader, then I don't
>think it's a problem at all.

From what I've learned with 'acceptance during transiton' this is a 
_very_ important topic.

We have no chane to solve _all_ problems - but I believe that we should
try to respect (and avoid) as many forseeable problems as possible.
Especially if they are so "cheaply" to solve.

>Are you aware of RFC 2646?  It relies upon the preservation of trailing
>spaces to do it's job in both mail and news.

There is a big difference between what _we _are doing here and what the
authors of an RFC are doing:
They build up upon a reliable infrastructure - and they are planning things
which will work only after redesign and reprogramming of tools.
yEnc has been designed to work also during transition - because else
it would never be accepted (see UUenc -> MIME transition which never worked).

>This and other problems -- such as the high bits being stripped, while
>not totally gone, are at the least on their way out.  The time to make
>accommodations for them in standards has passed.

I must admit tht I'm not half as optimistic as you are.
It was a surprise for me to see how conservative even Internet users can
be about their old fashioned methods and tools.

Writing RFCs which change the tools and behavior of admins nd programmers
is one thing. But if users have a chance to use their 'old method' then the 
'new method' must be close to perfect to gain acceptance.


I will not insist on this detail - and this discussion here is mainly 
informative for me. 
Russ did already mention other possible problems.
Are any of them related to more "special chars" at the beginning or end of 
a line? Leading spaces/tabs, Trailing TABs... ?

-- 
Juergen, [The Archiver]

Re: Trailing spaces in body on INN 2.3.3 ?
#56433
Author: Andrew Gierth
Date: Sun, 10 Feb 2002 08:17
32 lines
2611 bytes
[leaving the UTF-8 test group unsnipped, just out of curiosity to see
if I can crosspost there successfully]

>>>>> "Jesper" == Jesper Harder <harder@myrealbox.com> writes:

 Jesper> In the absence of 2047-encoding my client has no way of
 Jesper> knowing that your headers should be interpreted as UTF-8.  Of
 Jesper> course, I could customize it to try UTF-8 as the default.
 Jesper> But that's not a practical solution, because unencoded
 Jesper> iso-8859-1 in headers is very common in my locale.

In practice, unencoded 8859-1 strings are unlikely to be valid UTF-8,
so clients can be written to fall back to a local charset for text
that isn't valid UTF-8.

For headers that matter to the transport system, such as Newsgroups,
there is simply no possibility of using RFC 2047 since a unique
encoding is required, and putting charset knowledge into the server is
simply not practical.

 Jesper> UTF-8 is not going to be a substitute for RFC 2047 encoding
 Jesper> for a long, long time.  Ironically the reason is that a lot
 Jesper> people *aren't* using 2047 in non-ascii headers -- if they
 Jesper> did, I could switch to UTF-8 as the default instead of
 Jesper> Latin-1 without any drawbacks.

Take a look at some headers that use raw ISO 8859-1, and see for
yourself if any of them are also valid UTF-8.

-- 
Andrew.
Re: Trailing spaces in body on INN 2.3.3 ?
#56438
Author: Russ Allbery
Date: Sun, 10 Feb 2002 17:32
41 lines
3056 bytes
The Archiver <archiver@i3w.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> Again, the use of a wider range of characters inherent in the yEnc
>> protocol will cause considerably more problems than this.

> If you would find the time to mention the few most important problems
> you're already aware of then we might consider them when defining yEnc2.

You're missing my point.

You made a protocol decision when building yEnc, namely that news (and
possibly mail) can actually handle a bunch of characters that RFC 822
claims that it can't.  By using all of those characters, you can thereby
send binaries with considerably less expansion.

Because of that fundamental design decision, there is some subset of
software that yEnc is not going to work with, namely the software that
actually can't handle characters outside the range of printable ASCII or
corrupts them in some way.

My argument is that the number of pieces of software that don't work with
trailing spaces is considerably smaller than the software you're already
writing off as not worrying about (and I agree with that design decision).
So adding complexity to deal with other software that actually doesn't fit
your fundamental requirements for working with yEnc, namely being mostly
8-bit clean, just complicates the protocol for no real gain.

If you want an encoding format that will work with *all* software, well,
we already have that.  Base64.  You invented yEnc for a different purpose
than that, and I'm just trying to encourage you to stay focused on that
purpose rather than trying to make it interoperable with software outside
of the set that you really need to care about given the original design
intention.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Trailing spaces in body on INN 2.3.3 ?
#56442
Author: J.B. Moreno
Date: Mon, 11 Feb 2002 00:38
32 lines
2570 bytes
In article <07149.a22201@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> 
> >> I'm sure that there is at least one newsreader which cuts off trailing
> >> spaces.
> >
> >Do you mean news server?  If so I don't think it's likely to be a
> >signficant problem.  If you really did mean newsreader, then I don't
> >think it's a problem at all.
> 
> From what I've learned with 'acceptance during transiton' this is a 
> _very_ important topic.
> 
> We have no chane to solve _all_ problems - but I believe that we should
> try to respect (and avoid) as many forseeable problems as possible.
> Especially if they are so "cheaply" to solve.

Additional complexity isn't "cheap".  I agree with Russ, you have to
accept that the fundamental design decision to use all 8 bits (which I
agree with 100%) is the biggest stumbling block -- and that that isn't
that large.  Going for an extra tenth of a percent acceptance, is just
a waste of time.

Particularly when it's a backwards solution -- if a posting program
does have a problem with trailing white space, then *it* can encode the
white space to make things easier for itself.  What's required is to
have the decoding program be able to handle it, not require that
posting programs post that way.  And that's pretty much already been
established.
Re: Trailing spaces in body on INN 2.3.3 ?
#56446
Author: Jesper Harder
Date: Mon, 11 Feb 2002 04:19
29 lines
2635 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:

>>>>>> "Jesper" == Jesper Harder <harder@myrealbox.com> writes:
>
> For headers that matter to the transport system, such as Newsgroups,
> there is simply no possibility of using RFC 2047 since a unique
> encoding is required, and putting charset knowledge into the server is
> simply not practical.

True.  But backwards compatibily isn't an issue for Newsgroups, as it is
for Subject, because people haven't been creating groups with non-ascii
names.  

UTF-8 isn't entirely unproblematic either, BTW.  You have to agree on
some normalized form to make the encoding unique.

>  Jesper> UTF-8 is not going to be a substitute for RFC 2047 encoding
>  Jesper> for a long, long time.  Ironically the reason is that a lot
>  Jesper> people *aren't* using 2047 in non-ascii headers -- if they
>  Jesper> did, I could switch to UTF-8 as the default instead of
>  Jesper> Latin-1 without any drawbacks.
>
> Take a look at some headers that use raw ISO 8859-1, and see for
> yourself if any of them are also valid UTF-8.

Well, "æøå" is a valid Latin-1 string, the same byte sequence is
"æøå" in UTF-8.  But you're right, it's probably not very common in
practise.  I guess it's a bigger issue for some of the CJK charsets.
Re: Trailing spaces in body on INN 2.3.3 ?
#56447
Author: Jesper Harder
Date: Mon, 11 Feb 2002 04:20
38 lines
2975 bytes
"J.B. Moreno" <planb@newsreaders.com> writes:

> But the question wasn't would your newsreader display such a header
> correctly, it was would it /arrive/ intact and unchanged.  

Right.  We agree about that -- Usenet seems to be mostly 8-bit clean.

>> UTF-8 is not going to be a substitute for RFC 2047 encoding for a long,
>> long time.  Ironically the reason is that a lot people *aren't* using
>> 2047 in non-ascii headers -- if they did, I could switch to UTF-8 as the
>> default instead of Latin-1 without any drawbacks.
>
> 2047 encoding isn't really better than raw UTF8 even in the short term,
> because of the clients that don't recognize it.

RFC 2047 is five years old, and some clients still don't support it
(even though implementing it isn't exactly rocket science).

USEFOR, which will supposedly say that headers should be interpreted as
UTF-8, isn't released yet -- how long will it take before clients catch
up?

> You're using GNUS, and if I'm not mistaken, it's adding UTF8 support so
> that you won't have to "customize" anything, it'll just work.

No, it can't "just work" -- there is no way to determine how a random
string is supposed to be interpreted.  How would you determine if a
string is Latin-1, Big5, iso-2022-jp, UTF-8 or whatever?  That's just
not possible in general.

You can try to auto-detect the encoding, and it'll sometimes be correct,
but you can't do it reliably.

I *can* change the variable that says, which charset should be used if a
header isn't 2047 encoded.  If I set it to utf-8, your string is
displayed correctly.  But currently that's not a sensible setting
because raw utf-8 isn't very common.
Re: Trailing spaces in body on INN 2.3.3 ?
#56449
Author: The Archiver
Date: Mon, 11 Feb 2002 05:48
49 lines
3105 bytes
Russ Allbery <rra@stanford.edu> wrote:

>> If you would find the time to mention the few most important problems
>> you're already aware of then we might consider them when defining yEnc2.
>
>You're missing my point.

I understand it better now - thanks.

>My argument is that the number of pieces of software that don't work with
>trailing spaces is considerably smaller than the software you're already
>writing off as not worrying about (and I agree with that design decision).
>So adding complexity to deal with other software that actually doesn't fit
>your fundamental requirements for working with yEnc, namely being mostly
>8-bit clean, just complicates the protocol for no real gain.

Of course the general requirement "that a software can handle 8 bit chars"
is nothing I want to sacrify.
It is this specific topic "first and last character in a line" I did not yet 
consider in depth, because my personal knowledge of nntp-software
is limited to a dozen popular tools.

I'm not much afraid about client-software, because they should almost 
support "raw handling" of a message - even if the display could be 
mixed up.

But yEnc must be designed in a way that existing news-servers 
(and forwarders) do not change the body.
If any existing news-server (or forwarder) has problems with 
leading/trailing spaces/Tabs/ETX/0x7F in bodies then we should 
not negligate that.

Earlier or later people would begin to post yEncoded messages
through that servertype. 

>If you want an encoding format that will work with *all* software, well,
>we already have that.  Base64.  You invented yEnc for a different purpose
>than that, and I'm just trying to encourage you to stay focused on that
>purpose rather than trying to make it interoperable with software outside
>of the set that you really need to care about given the original design
>intention.

I would be more than happy if my concerns about leading/trailing
special characters are no problem.

-- 
Juergen, [The Archiver]

Re: Trailing spaces in body on INN 2.3.3 ?
#56450
Author: The Archiver
Date: Mon, 11 Feb 2002 05:54
21 lines
1835 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>Additional complexity isn't "cheap".  

I did use "cheap" because encoding some (1-5) special characters
at the start of end of a line would not require much size/bandwidth.

>Going for an extra tenth of a percent acceptance, is just a waste of time.

You are right for the reading clients.
You (and Russ) did not mention any news-server which could
be sensible for trailing/leading special chars - and the problem
which initiated this thread is meanwhile solved.

So I believe that we can finally end this.

-- 
Juergen, [The Archiver]


Re: Trailing spaces in body on INN 2.3.3 ?
#56451
Author: J.B. Moreno
Date: Mon, 11 Feb 2002 06:08
30 lines
2636 bytes
In article <m3bsewir9o.fsf@defun.localdomain>,
 Jesper Harder <harder@myrealbox.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> writes:

> > You're using GNUS, and if I'm not mistaken, it's adding UTF8
> > support so that you won't have to "customize" anything, it'll just
> > work.
>
> No, it can't "just work" -- there is no way to determine how a random
> string is supposed to be interpreted.  How would you determine if a
> string is Latin-1, Big5, iso-2022-jp, UTF-8 or whatever?  That's just
> not possible in general.
> 
> You can try to auto-detect the encoding, and it'll sometimes be correct,
> but you can't do it reliably.

You can do it as a layered response -- check for 2047 if not then check
for valid UTF8 (or alternatively /invalid/ UTF8) and then use a default
if that doesn't (or if appropriate does) work).

> I *can* change the variable that says, which charset should be used
> if a header isn't 2047 encoded.  If I set it to utf-8, your string is
> displayed correctly.  But currently that's not a sensible setting
> because raw utf-8 isn't very common.

UTF8 may not be common now, but it is the most sensible thing for the
future -- as for the present, there's not really a "sensible" solution,
because nothing is either official or very reliable.
Re: Trailing spaces in body on INN 2.3.3 ?
#56452
Author: J.B. Moreno
Date: Mon, 11 Feb 2002 18:15
20 lines
2062 bytes
In article <35546.b22201@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> You are right for the reading clients.
> You (and Russ) did not mention any news-server which could
> be sensible for trailing/leading special chars - and the problem
> which initiated this thread is meanwhile solved.
> 
> So I believe that we can finally end this.

The problem that started this thread was a misunderstanding -- the
original poster wasn't aware of the NNTP requirement of doubling
leading periods.  It might be worthwhile to mention that on the
yenc.org page somewhere as an informational notice; in other types of
articles leading periods are relatively rare and mishandling doesn't
produce major problems, that's not the case with yEnc.

So, instead of being a relatively esoteric bit of knowledge, it is (for
yEnc posts) something that needs to be kept firmly in mind.
Re: Trailing spaces in body on INN 2.3.3 ?
#56462
Author: The Archiver
Date: Tue, 12 Feb 2002 07:33
28 lines
2411 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>The problem that started this thread was a misunderstanding -- the
>original poster wasn't aware of the NNTP requirement of doubling
>leading periods.  It might be worthwhile to mention that on the
>yenc.org page somewhere as an informational notice; in other types of
>articles leading periods are relatively rare and mishandling doesn't
>produce major problems, that's not the case with yEnc.

From the "implementation notes" on yenc.org:

> It might be possible to encode the DOT '.' character only in the first
> column. Another method would be to duplicate the DOT when the article
> is transmitted by NNTP. The dot is still encoded in the source code
> example. I love the straight forward conception. No dot can occur
> in the first column.

I'm actually creating the mailing list for yEnc.
There we can discuss the "final document" - and create better 
texts than this one.

It is an interesting experience to compare what is included in the 
draft/notes and what the programmers made of it.

-- 
Juergen, [The Archiver]

Re: Trailing spaces in body on INN 2.3.3 ?
#56474
Author: J.B. Moreno
Date: Tue, 12 Feb 2002 23:11
36 lines
2974 bytes
In article <12338.c22200@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> 
> >The problem that started this thread was a misunderstanding -- the
> >original poster wasn't aware of the NNTP requirement of doubling
> >leading periods.  It might be worthwhile to mention that on the
> >yenc.org page somewhere as an informational notice; [...]
> 
> From the "implementation notes" on yenc.org:
[reformatted]
>    It might be possible to encode the DOT '.' character only in the
>    first column. Another method would be to duplicate the DOT when
>    the article is transmitted by NNTP. The dot is still encoded in
>    the source code example. I love the straight forward conception.
>    No dot can occur in the first column.
-snip-
> It is an interesting experience to compare what is included in the 
> draft/notes and what the programmers made of it.

The problem with the above is that it doesn't explain /why/ you would
want to encode the dot in the first column.  I'd suggest something
like:

    There is an NNTP requirement that if a line begins with a
    leading period (i.e. a DOT aka '.'), that period must be doubled
    when POSTing to the server, when retrieving an article any
    period at the beginning of a line are to be removed.  To avoid
    this, some clients will encode the period if it is the first
    character on a line, others will encode all periods.  When
    retrieving an article via NNTP, the client must be prepared to
    encounter doubled leading periods.

It's a bit longer, but more educational.
Re: Trailing spaces in body on INN 2.3.3 ?
#56480
Author: The Archiver
Date: Wed, 13 Feb 2002 06:46
19 lines
1846 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>The problem with the above is that it doesn't explain /why/ you would
>want to encode the dot in the first column.  I'd suggest something
>like:

> [...]

>It's a bit longer, but more educational.

I will add it to the 'notes' and we should soon try to rewrite the draft.

btw.:  Thanks for your ongoing support for yEnc.
Without you it would have never made it up.

-- 
Juergen, [The Archiver]

Re: Trailing spaces in body on INN 2.3.3 ?
#56522
Author: Jesper Harder
Date: Fri, 15 Feb 2002 05:18
50 lines
3261 bytes
"J.B. Moreno" <planb@newsreaders.com> writes:

>  Jesper Harder <harder@myrealbox.com> wrote:
>
>> You can try to auto-detect the encoding, and it'll sometimes be
>> correct, but you can't do it reliably.
>
> You can do it as a layered response -- check for 2047 if not then
> check for valid UTF8 (or alternatively /invalid/ UTF8) and then use a
> default if that doesn't (or if appropriate does) work).

This will probably work OK for Latin-x, but you'd have to investigate if
it could hurt users of other charsets.

>> I *can* change the variable that says, which charset should be used
>> if a header isn't 2047 encoded.  If I set it to utf-8, your string is
>> displayed correctly.  But currently that's not a sensible setting
>> because raw utf-8 isn't very common.
>
> UTF8 may not be common now, but it is the most sensible thing for the
> future 

Sure, it'll just take a long time.

> -- as for the present, there's not really a "sensible" solution,
> because nothing is either official 

RFC 1036 doesn't say anything about 8bit but just refers to the mail
standard.  Since RFC 822 is now obsolete it's reasonable to look at
2821/2822 instead, which *does* mention the possibility of using 2047
for encoding non-ASCII headers.  So I think it's fair to say that 2047
is "more official" than UTF-8.

> or very reliable.

Well, if I want to send a Subject with Latin-1 chars I have three
reasonable choices:

1.  Send raw Latin-1
2.  Use 2047 encoding
3.  Send raw utf-8

1. and 2. will display correctly in most clients, but 1. isn't a very
good idea.  Using raw utf-8 *won't* be displayed correctly for most
users.  Are there any clients at all, which will display 3. properly in
the default setting?

3. doesn't give me any benefits, and hurts a lot of people -- at present
that's not a sensible choice.
Re: Trailing spaces in body on INN 2.3.3 ?
#56590
Author: J.B. Moreno
Date: Sun, 17 Feb 2002 20:26
70 lines
3749 bytes
In article <m3g0432uhs.fsf@defun.localdomain>, 
 Jesper Harder <harder@myrealbox.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> writes:
> 
> >  Jesper Harder <harder@myrealbox.com> wrote:
> >
> >> You can try to auto-detect the encoding, and it'll sometimes be
> >> correct, but you can't do it reliably.
> >
> > You can do it as a layered response -- check for 2047 if not then
> > check for valid UTF8 (or alternatively /invalid/ UTF8) and then use a
> > default if that doesn't (or if appropriate does) work).
> 
> This will probably work OK for Latin-x, but you'd have to investigate if
> it could hurt users of other charsets.

I do believe that's been done -- at least with what the Japanese and
Chinese use.


-snip-
> > UTF8 may not be common now, but it is the most sensible thing for the
> > future 
> 
> Sure, it'll just take a long time.

Most things on usenet do -- at least until they reach a saturation
point. 


> > -- as for the present, there's not really a "sensible" solution,
> > because nothing is either official 
> 
> RFC 1036 doesn't say anything about 8bit but just refers to the mail
> standard.  Since RFC 822 is now obsolete it's reasonable to look at
> 2821/2822 instead, which *does* mention the possibility of using 2047
> for encoding non-ASCII headers.  So I think it's fair to say that 2047
> is "more official" than UTF-8.

I disagree.

> > or very reliable.
> 
> Well, if I want to send a Subject with Latin-1 chars I have three
> reasonable choices:
> 
> 1.  Send raw Latin-1
> 2.  Use 2047 encoding
> 3.  Send raw utf-8
> 
> 1. and 2. will display correctly in most clients, but 1. isn't a very
> good idea.  Using raw utf-8 *won't* be displayed correctly for most
> users.  Are there any clients at all, which will display 3. properly in
> the default setting?

Outlook Express for the Mac does, I believe Thoth will with the proper
language plugin, MTNW 3.1 can,  I'd guess Netscape (as well as OE for
Windows), probably others as well (and of course you can have tools
that sit between the server and the client and does translations for
you).


> 3. doesn't give me any benefits, and hurts a lot of people -- at present
> that's not a sensible choice.

If it's not used then it'll never be a sensible choice -- you have to
accept that there will be a period when it's not much if any better
than the alteratives.
Re: Trailing spaces in body on INN 2.3.3 ?
#56633
Author: Jesper Harder
Date: Mon, 18 Feb 2002 20:55
22 lines
2169 bytes
"J.B. Moreno" <planb@newsreaders.com> writes:

>  Jesper Harder <harder@myrealbox.com> wrote:
>
>> "J.B. Moreno" <planb@newsreaders.com> writes:
>
>> > UTF8 may not be common now, but it is the most sensible thing for
>> > the future
>> 
>> Sure, it'll just take a long time.
>
> Most things on usenet do -- at least until they reach a saturation
> point.

Yes, but things change faster if there's a real incentive to change.
Raw utf-8 in headers where 2047 encoding was previously used, doesn't
really offer anything that wasn't possible with RFC 2047 -- it doesn't
solve a problem.

The *real* benefit of utf-8 is non-ASCII newsgroup names, not headers
which are only intended for display purposes.
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