🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
28 messages
28 total messages Started by Harri Lindberg Wed, 11 Mar 1998 00:00
NNTP followup/response method
#26782
Author: Harri Lindberg
Date: Wed, 11 Mar 1998 00:00
15 lines
889 bytes
I'm writing a light news reader/searcher application and I can't find
information about the followup method. If I want a certain new news article to
be a response to an existing article, how do I send this article to a news
server?      

I hope someone can help me with this one. Thank you in advance.

Harri Lindberg.





Re: NNTP followup/response method
#26754
Author: Forrest J. Cavalier III
Date: Wed, 11 Mar 1998 00:00
39 lines
2052 bytes
In article <6e6r65$d13@darkmere.gen.nz>, simon@darkmere.gen.nz wrote...
>
>Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:
>>       Followup-To:  (From existing message)
>
>This should just be the default , not hard wired in..
>
>>       Newsgroups:   (If there is no Followup-To:)
>>       References:   (Append one, deleting the first one(s) to
>>                      limit the line length to 512 bytes)
>
>Hmm there might be a little bit of debate on this, the only reason you
>should ever delete existing ones is some stupid bug in INN.. Does anyone
>know if this has been fixed recently?

....Not that I am aware.....

To be able to discuss this in more detail, I just dug through the INN code 
again....

   The limit on any line in a post is actually 1000 characters, (I 
   remembered it incorrectly as 512.)  The limit is set by ART_LINE_LENGTH
   in nnrpd.h, and the code in nnrpd/commands.c::CMDpost().

   (There is a limit of 512 characters for NNTP commands specified in RFC977,
   which could be what I was remembering....)

I don't think there is a limit in RFC1036, (which is what actually
applies to the case in point: articles.)

I haven't tested this recently behavior recently, so there may be something 
I've missed, but I have seen reports of INN rejecting posts because of 
Reference lines which were too long.

Forrest


Re: NNTP followup/response method
#26756
Author: Simon Lyall
Date: Wed, 11 Mar 1998 00:00
26 lines
1533 bytes
Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:
>	Followup-To:  (From existing message)

This should just be the default , not hard wired in..

>	Newsgroups:   (If there is no Followup-To:)
>	References:   (Append one, deleting the first one(s) to
>                      limit the line length to 512 bytes)

Hmm there might be a little bit of debate on this, the only reason you
should ever delete existing ones is some stupid bug in INN.. Does anyone
know if this has been fixed recently?

>	Subject:      If it doesn't already have "Re:", add it.
>		      Otherwise keep it the same.

"Re: "  , the space is important.

-- 
Simon Lyall. | Looking for Work | Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.

    "We came to wreck everything and ruin your life, God sent us"

Re: NNTP followup/response method
#26759
Author: Forrest J. Cavalier III
Date: Wed, 11 Mar 1998 00:00
32 lines
1753 bytes
In article <6e6cnl$es$1@cc.tut.fi>, hl57026@uta.fi wrote...
>
>I'm writing a light news reader/searcher application and I can't find
>information about the followup method. If I want a certain new news article to
>be a response to an existing article, how do I send this article to a news
>server?      

POST it, just like any other article.
but pay attention (and use) these header fields:

	Followup-To:  (From existing message)
	Newsgroups:   (If there is no Followup-To:)
	References:   (Append one, deleting the first one(s) to
                      limit the line length to 512 bytes)
	Subject:      If it doesn't already have "Re:", add it.
		      Otherwise keep it the same.

The Subject and References line is what news readers use to "Thread"
article titles for display purposes.

All the newsgroup headers are described in RFC1036.  (In searchable
hypertext at:
	http://www.mibsoftware.com/userkt/rfc1036/index.html
)

Forrest J. Cavalier III, Mib Software, INN customization and consulting 
Searchable hypertext INN docs, FAQ, RFCs, etc: 650+ pages: Free access! 
   http://www.mibsoftware.com/innsup.htm 


Re: NNTP followup/response method
#26767
Author: bill davidsen
Date: Wed, 11 Mar 1998 00:00
16 lines
1214 bytes
In article <6e6in9$57q$1@nntp.epix.net>,
Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:

| 	References:   (Append one, deleting the first one(s) to
|                       limit the line length to 512 bytes)

I highly suggest keeping the original <ref> and the most recent you
can fit. This may help threading depending on what's online at a
given site.

--
	Bill Davidsen (davidsen@tmr.com)
Stupidity, like virtue, is its own reward.  -me, 1988

Re: NNTP followup/response method
#26779
Author: Sam
Date: Thu, 12 Mar 1998 00:00
33 lines
2282 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <873ego902k.fsf@erlenstar.demon.co.uk>,
	Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:

>>>>>> "Sam" == Sam  <sam-001@dpinc.ml.org> writes:
> 
>  Sam> Yes.  One mail2news gateway I use does this.  I just truncate
>  Sam> all but the last five References: tags.  There's no need to keep
>  Sam> anything more.
> 
> Yes there is; you should always keep the first tag.

Why's that?  If someone's server drops five posts in a row, in a given
thread, I really don't think there's much of a difference whether the whole
thing is threaded, or not.


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: http://www.geocities.com/SiliconValley/Peaks/5799/ for public key.

iQEVAwUBNQdO8JlaALjSq209AQECCAf/VmUosMAALbmLhSxtTvci9ixrZ/3VP1N/
JUIwzsY/+BI80bwjbHQqhIg+fa0M2naPZHpwLpYK/KkognPl5EnMbybvKFrRFJDS
8AyQwbJc+6zhFDpJVs65W3t2xXUwSYFtC9aRKoyZPNDYMsD1uWUfZRw8gjZMdTLC
OFrVxgHaecEfvfMRZFf1dyLnuwQ6BI0h35rXlpHL6QZSa41UasZ1WsJGwg0XvkTR
e0muBoy8C6MmyNhRbKKNzGlNkJKULCp8+ktgeGXOnLmKAstMN500wW7YMUc+/oCb
JtSMai2ocYV8ERQPN5uLQu84X+1oJUFFSNbEsYX8QgHrGCYgetyfwg==
=YcMV
-----END PGP SIGNATURE-----

Re: NNTP followup/response method
#26793
Author: Forrest J. Cavalier III
Date: Thu, 12 Mar 1998 00:00
50 lines
2638 bytes
In article <19980312133756.167$GQ@newsreader.com>, curt@kcwc.com wrote...
>
>Which means that some transports may not be able to handle lines which
>are over 1000 octets.  So, to make sure that the article will be able
>to get to every point in the Usenet network, you should limit your lines
>to 1000 octets or less.  Inn therefore forces new posts to follow this.
>
>However, in my testing, I found that INN 1.5.1 actually limited the line
>to 999 bytes, not 1000 like it should.
>

[snip]

>
>Thanks for the pointer.  I looked at the code, and sure enough, in inn
>1.5.1 it's wrong.
>
>The problem is in READline().  If the line, including the CR LF, is 1000
>bytes or more, READline() will return a too-long indication.  To match the
>wording of the RFC it should only return that error if the line is OVER
>1000 bytes.  I don't know if this has been changed in later verions of INN.
>It's clearly a bug in the way READline() is written because it's passed
>a buffer which can hold over 1000 characters and an argument which tells
>it to limit the line length to 1000 characters, but yet it returns an
>error when it gets a line which is 1000 characters long.
>
>Forrest, you're an inn expert.  Has READline() changed in later versions
>of inn?

I didn't think so, but I can't remember everything.  So....
I just diff'ed the code inn 1.5.1 and 1.8.  That particular behavior of 
READline has not changed.

Can you be convinced to submit a patch?  This is not a buffer overrun
error, or anything like that, and 999 is close enough to 1000 for
me, but it would be nice to fix it, while the details are fresh
in your mind and you can test it.  Please?


Great sleuthing through son-of-1036.  Nice job.  I should have
looked there.  (Hmmmm.  I should have son-of-1036 in the RKT,
it's been on my todo list for a while, but you know how that
goes....)

Forrest



Re: NNTP followup/response method
#26796
Author: Curt Welch
Date: Thu, 12 Mar 1998 00:00
28 lines
1993 bytes
mibsoft@mibsoftware.com (Forrest J. Cavalier III) wrote:
> In article <19980312103327.624$iU@newsreader.com>, curt@kcwc.com wrote...
> [snip]
> >Hacking together software that will create a simple reply is easy.
> >Doing it correctly is very complex.
>
> True....  Microsoft and Netscape don't do it.

> So don't sweat making mistakes.  Programmers do it all the time.

I'll second that.  If you are just experimenting, don't sweat the
details.  Posting a few bogus articles won't hurt anyone.  Feel free
to experiment.

> (Releasing buggy software as a finished product is something quite
> different.....But that isn't what you were asking.....)

But, if your software is going to end up generating lots of replies
that will get posted to real Usenet groups, over an extended period of
time, please take the time to get it "mostly" right.  Look at the GNKSA for
one definition of "mostly right".

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP followup/response method
#26798
Author: Curt Welch
Date: Thu, 12 Mar 1998 00:00
55 lines
3613 bytes
Jan-Pieter Cornet <johnpc@xs4all.nl> wrote:
> In article <6e6ub2$1ji2$1@newssvr03-int.news.prodigy.com>,
> bill davidsen <davidsen@tmr.com> wrote:
> >In article <6e6in9$57q$1@nntp.epix.net>,
> >Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:
> >
> >|      References:   (Append one, deleting the first one(s) to
> >|                       limit the line length to 512 bytes)
> >
> >I highly suggest keeping the original <ref> and the most recent you
> >can fit. This may help threading depending on what's online at a
> >given site.
>
> You could always wrap a References: header to multiple lines, using
> line continuation (starting the next line with whitespace, see also
> the References: header on this posting (hopefully that works)).

No. No. No.

There are packages that don't correctly deal with wrapped References:
lines.  They don't correctly pick up the continuation lines when creating a
reply so the the most important ones (the last ones) get lost.  You should
not wrap References: lines.  But, if you do wrap them (because you feel
that's the way it "should" be done), wrap them at the 1000 byte line limit
set by the RFCs and not at 512!

And don't forget the issue of cleaning up bogus References: lines created
by other packages that truncate the line in the middle of of a Message-ID.
And remember to correctly preserve spaces which mark deleted Message-IDs.
And remember to correctly add spaces to mark Message-ID's you have deleted.
And think about the issues of preserving Message-IDs which mark subject
changes.  And then try to figure out the "correct" way to truncate a
References: line when it's too long in light of all this.

Creating proper replys is not easy - and many of the finer points (like how
to correctly format messages that are both posted and e-mailed) are not
well defined and are constantly being debated.  If you write software that
will be used to create replys on Usenet, be sure to do your research first.
Read the RFCs and the associated documents people have produced so you can
understand the issues first.  Start with RFC 1036, then read son-of-1036 by
Henery Spencer (ftp://zoo.toronto.edu/pub/news.txt.Z and other places),
then read the GKNKSA (http://www.xs4all.nl/%7Ejs/gnksa/).  Then read the
documents those documents refer to.  Then subscribe to
news.software.readers and debate these issues for awhile.  After all this
you will start to understand what you are getting yourself in to.

Hacking together software that will create a simple reply is easy.  Doing
it correctly is very complex.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP followup/response method
#26799
Author: Curt Welch
Date: Thu, 12 Mar 1998 00:00
39 lines
2348 bytes
mibsoft@mibsoftware.com (Forrest J. Cavalier III) wrote:
> In article <6e6cnl$es$1@cc.tut.fi>, hl57026@uta.fi wrote...
> >I'm writing a light news reader/searcher application and I can't find
> >information about the followup method. If I want a certain new news
> >article to be a response to an existing article, how do I send this
> >article to a news server?
>
> POST it, just like any other article.
> but pay attention (and use) these header fields:
>
>         Followup-To:  (From existing message)

And remember to deal with "Followup-To: poster" (unless your
specal case application can be justified in ignoring this - but
don't ever create a "Newsgroups: poster" line!).

>         Newsgroups:   (If there is no Followup-To:)
>         References:   (Append one, deleting the first one(s) to
>                       limit the line length to 512 bytes)

As pointed out elsewhere, this is the wrong algorithm for dealing
with References: lines.  Read the RFCs and related documents.  Getting
this line correct is very complex.

>         Subject:      If it doesn't already have "Re:", add it.
>                       Otherwise keep it the same.

Not to mention the issues of dealing with RE:, Re^2:, or any of these with
no space after the :.

And don't forget the newer Mail-Copies-To: header, or the issue of
correctly generating the Message-ID: if the Subject: has changed.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP followup/response method
#26801
Author: Forrest J. Cavalier III
Date: Thu, 12 Mar 1998 00:00
43 lines
2279 bytes
In article <19980312103327.624$iU@newsreader.com>, curt@kcwc.com wrote...
[snip]

>Hacking together software that will create a simple reply is easy.  Doing
>it correctly is very complex.

True....  Microsoft and Netscape don't do it.

Please, don't let the details of doing it "perfectly correctly" scare
you away from writing some code for your personal amusement or use.

If you write your code in the most obvious way, taking into account
most of the obvious events (long lines, is one) then you are going
to have something that works 99.99% of the time.

If your code has bugs, and generates an invalid post, the worst that
should happen is you get an error message back from the server,
or your program crashes.  In other words: you get hassled, and
it bothers no one else.

It is VERY unlikely to crash a couple of broken newsservers or
some news reading clients, (unless you are trying to do that.)
And even if that did happen, it wouldn't be your fault.  And if you
were making an honest mistake, everyone involved would forgive you.

Honest mistakes with those consequences happen all the time, and
are still a *lot* less of a problem than people maliciously sending
newgorups, rmgroups, huge binaries, etc.

So don't sweat making mistakes.  Programmers do it all the time.

(Releasing buggy software as a finished product is something quite
different.....But that isn't what you were asking.....)

...Come on in, the water's fine.  (Even for Pascal programmers....)

:-)

Forrest


Re: NNTP followup/response method
#26802
Author: Jan-Pieter Cornet
Date: Thu, 12 Mar 1998 00:00
24 lines
1612 bytes
In article <6e6ub2$1ji2$1@newssvr03-int.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
>In article <6e6in9$57q$1@nntp.epix.net>,
>Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:
>
>| 	References:   (Append one, deleting the first one(s) to
>|                       limit the line length to 512 bytes)
>
>I highly suggest keeping the original <ref> and the most recent you
>can fit. This may help threading depending on what's online at a
>given site.

You could always wrap a References: header to multiple lines, using 
line continuation (starting the next line with whitespace, see also
the References: header on this posting (hopefully that works)).

--
#! ##### Jan-Pieter Cornet ##### <johnpc@xs4all.net> ##### perl
++$_;$!=$_+++$_;($:,$,,$/,$*)=$!=~/.(.)...(.)(.).(.)/;$!=$_+$_;
($@,$\,$~)=$!=~/(.)(.).(.)/; $_="$,$/$:"; $@++; $~="$~$_";($_)=
\$$=~/\((.)/;$|=++$_;$_++;$|++;$~="$~ $@$:";`$~$/$\$*$, $|>&$_`

Re: NNTP followup/response method
#26807
Author: Curt Welch
Date: Thu, 12 Mar 1998 00:00
31 lines
2144 bytes
mibsoft@mibsoftware.com (Forrest J. Cavalier III) wrote:
> In article <19980312133756.167$GQ@newsreader.com>, curt@kcwc.com wrote...
> >The problem is in READline() ...

> Can you be convinced to submit a patch?

Yes.

> This is not a buffer overrun
> error, or anything like that, and 999 is close enough to 1000 for
> me, but it would be nice to fix it, while the details are fresh
> in your mind and you can test it.  Please?

I'm looking at it but have to run now.  The same function is used
for reading NNTP commands and seems to have to same problem of
limiting the commands to 511 instead of 512 (counting the CR LF), so
fixing it should solve both problems.  I've written the code but
must do more testing to verify my work.

And the second problem just posted by Simon Lyall <simon@darkmere.gen.nz>
on the issue of rejecting lines > 1024 after unwrapping is an interesting
problem also.  I'll look more into that as well and report back.  Off the
top of my head I don't remember anything in the RFCs about max line length
after header lines are unfolded.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP followup/response method
#26809
Author: Andrew Gierth
Date: Thu, 12 Mar 1998 00:00
13 lines
1181 bytes
>>>>> "Sam" == Sam  <sam-001@dpinc.ml.org> writes:

 Sam> Yes.  One mail2news gateway I use does this.  I just truncate
 Sam> all but the last five References: tags.  There's no need to keep
 Sam> anything more.

Yes there is; you should always keep the first tag.

-- 
Andrew.

Re: NNTP followup/response method
#26810
Author: Andrew Gierth
Date: Thu, 12 Mar 1998 00:00
17 lines
1310 bytes
>>>>> "Sam" == Sam  <sam-001@dpinc.ml.org> writes:

 Sam> Yes.  One mail2news gateway I use does this.  I just truncate
 Sam> all but the last five References: tags.  There's no need to keep
 Sam> anything more.
 
 >> Yes there is; you should always keep the first tag.

 Sam> Why's that?

Killfiling by thread.

-- 
Andrew.

Re: NNTP followup/response method
#26814
Author: Simon Lyall
Date: Thu, 12 Mar 1998 00:00
35 lines
1940 bytes
Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:
>To be able to discuss this in more detail, I just dug through the INN code 
>again....

>   The limit on any line in a post is actually 1000 characters, (I 
>   remembered it incorrectly as 512.)  The limit is set by ART_LINE_LENGTH
>   in nnrpd.h, and the code in nnrpd/commands.c::CMDpost().

The problem appears to be in innd/art.c in the function ARTparseheader .

The bit that checks against "MAXHEADERSIZE" (usually set to 1024) seems to
do this against the header after it has been unfolded. Thus a 1500
character header that is folded into three 500-character "lines" is
rejected with a:

437 "References" header too long 

type error. Thus newsreaders that take longish References (and other)
headers and fold them to keep each line under 1000 characters still have
their articles rejected. 

The problem is that all the default config.data files have MAXHEADERSIZE
set to 1024. The question is why this limit is coded in and why is is
coded for this value.

Why does a limit on the length of each header need to exist seperate from
an overall article size limit? 

-- 
Simon Lyall. | Looking for Work | Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.


Re: NNTP followup/response method
#26816
Author: Sam
Date: Thu, 12 Mar 1998 00:00
27 lines
2076 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <6e74ml$e5r$1@nntp.epix.net>,
	mibsoft@mibsoftware.com (Forrest J. Cavalier III) writes:

> I haven't tested this recently behavior recently, so there may be something 
> I've missed, but I have seen reports of INN rejecting posts because of 
> Reference lines which were too long.

Yes.  One mail2news gateway I use does this.  I just truncate all but the
last five References: tags.  There's no need to keep anything more.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: http://www.geocities.com/SiliconValley/Peaks/5799/ for public key.

iQEVAwUBNQc1BZlaALjSq209AQFLtAf8CtiUFtrnTqTojZE+yWAbgujxYpi+756i
QS9kZA1sNrUgtvXndTS4FjYeaQtup6Axu+c44w49C+oaWcaxeQCnCVAyi3Fc7Lzu
AdRmFPVIGlFl9d/2veEIENxed55tcz6Hjjz81ckEyVJqga2mW0pxU7uBId5bVujq
IWi7k8xvGt46E1REsJDQQ7CSCEpDRhDNWii6YGwiyU6kxLi76E+m2VLC7kPpD9j8
oo/4v76NhrjRBv45x9rR4t5IU35q06zCMtpT/antyJQC+/9srnp2Fv5260W7uUvC
YXWB7kbwVHj4VN6im1aTtOLxjDrQciyEhAXLHhPJqvrr4ZrHkGFSUA==
=h1FY
-----END PGP SIGNATURE-----

Re: NNTP followup/response method
#26818
Author: Curt Welch
Date: Thu, 12 Mar 1998 00:00
83 lines
4533 bytes
mibsoft@mibsoftware.com (Forrest J. Cavalier III) wrote:
> In article <6e6r65$d13@darkmere.gen.nz>, simon@darkmere.gen.nz wrote...
> >Forrest J. Cavalier III <mibsoft@mibsoftware.com> wrote:
> >>       References:   (Append one, deleting the first one(s) to
> >>                      limit the line length to 512 bytes)
> >

Here's some of what son-of-1036 has to say about this:

         "Followup agents SHOULD not shorten References  headers.   If
          it  is absolutely necessary to shorten the header, as a des-
          perate last resort, a followup agent MAY do this by deleting
          some  of  the  message IDs.  However, it MUST not delete the
          first message ID, the last three message IDs (including that
          of  the immediate precursor), or any message ID mentioned in
          the body of the followup."

> >Hmm there might be a little bit of debate on this, the only reason you
> >should ever delete existing ones is some stupid bug in INN.. Does anyone
> >know if this has been fixed recently?

It's not a stupid bug.  It's a feature!  Son-of-1036 says that news
transports should not limit lines to any length, but:

  "If  it  is  absolutely  necessary  for  an implementation to
   impose a limit on the length of header lines, body lines, or
   header  logical  lines,  that  limit  shall be at least 1000
   octets, including EOL representations."

Which means that some transports may not be able to handle lines which
are over 1000 octets.  So, to make sure that the article will be able
to get to every point in the Usenet network, you should limit your lines
to 1000 octets or less.  Inn therefore forces new posts to follow this.

However, in my testing, I found that INN 1.5.1 actually limited the line
to 999 bytes, not 1000 like it should.

> ....Not that I am aware.....
>
> To be able to discuss this in more detail, I just dug through the INN
> code again....
>
>    The limit on any line in a post is actually 1000 characters, (I
>    remembered it incorrectly as 512.)  The limit is set by
>    ART_LINE_LENGTH in nnrpd.h, and the code in
>    nnrpd/commands.c::CMDpost().

Thanks for the pointer.  I looked at the code, and sure enough, in inn
1.5.1 it's wrong.

The problem is in READline().  If the line, including the CR LF, is 1000
bytes or more, READline() will return a too-long indication.  To match the
wording of the RFC it should only return that error if the line is OVER
1000 bytes.  I don't know if this has been changed in later verions of INN.
It's clearly a bug in the way READline() is written because it's passed
a buffer which can hold over 1000 characters and an argument which tells
it to limit the line length to 1000 characters, but yet it returns an
error when it gets a line which is 1000 characters long.

Forrest, you're an inn expert.  Has READline() changed in later versions
of inn?

>    (There is a limit of 512 characters for NNTP commands specified in
>    RFC977, which could be what I was remembering....)
>
> I don't think there is a limit in RFC1036, (which is what actually
> applies to the case in point: articles.)

Yes there is - or at least it is in son-of-1036 which is more important
these days than RFC 1036.

> I haven't tested this recently behavior recently, so there may be
> something I've missed, but I have seen reports of INN rejecting posts
> because of Reference lines which were too long.

inn 1.5.1 certainly rejects new posts which have long lines.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP followup/response method
#26825
Author: Curt Welch
Date: Fri, 13 Mar 1998 00:00
71 lines
4709 bytes
Simon Lyall <simon@darkmere.gen.nz> wrote:
> Curt Welch <curt@kcwc.com> wrote:
> >Which means that some transports may not be able to handle lines which
> >are over 1000 octets.  So, to make sure that the article will be able
> >to get to every point in the Usenet network, you should limit your lines
> >to 1000 octets or less.  Inn therefore forces new posts to follow this.
>
> See my other post, Im not complaining about that limit. I *am*
> complaining that it is junking articles recieved via ihave that have
> logical header lines longer that 1000-odd characters, even if the actual
> lines are all less than that limit.

Yes, I saw and commented on your other post.

If the RFC can argue for any line limits, then I think that same argument
can logicaly be extended to "logical line" length limits, even if the RFCs
didn't address the issue.  But clearly, wrapping References: lines instead
of truncating them to fit on a single line should be supported by the news
transport.  And a 1024 character logical line length limit is far too small
in the case of References: lines. Ideally, as you say, there should be no
limit at all.

If the limit is just rasied, I'd think a value of 10000 might be
reasonable.

But this brings up another issue.  What if the news transports and news
readers all started supporting unlimited length References: lines?  It
seems to me that there would be some threads in some newsgroups that
might go on for years.  Do we really want articles (and overview files)
that have 100K References: lines containing thousands of Message-IDs?  I
don't think so.  It seems like a big waste of bandwidth, diskspace and
newsreader processing time.  Thinking about it this way, it seems very
resonable for transports (at least the ones which are building
overview-like data bases) to reject articles with excessively long
References: lines.

Having a small number of Message-ID's in the References: lines of around 10
seems resonable to me. Newsreaders rebuild the thread from all the articles
currently available in the spool.  With a limit of only 10 IDs per article,
that gives the newsreader a lot of overlap to work with.  It can skip gaps
of up to 9 articles, and it can go back 9 articles further than the oldest
article still in the spool.

At an avg Message-ID length of 50 characters, you can get about 20
Messages-IDs on a single 1000 character References: line.  So it seems that
limiting the References: line to a single 1000 charcter line should be more
then resonable behavior for a newsreader when constructing a new
References: line for a reply.

But, the news transport (inn) needs to be more liberal in what it will
accept.  Messages IDs are limited to around 512 bytes in length (or a bit
less due to NNTP command line length restrictions), so if you want to allow
up to 10 (my "resonable" limit from above) max size Message IDs, you need a
logical line limit around 5000 bytes.  And a 10000 byte logical line limit
would extend that to around 20 max size IDs, which I'd feel even more
comfortable with.  And a 10000 byte limit would give (10000/50) or about
200 typical size IDs - which also sounds like a resonable size for an upper
limit which inn could use as a basis for rejecting articles.

So, I'd vote for levaving the logical line limit check in inn (for both
POST and IHAVE transfers) for References: lines, but increasing it from the
current 1024 to somewhere around 10K.  (This assumes of course that
increasing this limit doesn't cause too many other problems with overview
record size limits etc...).  I'll look into this some....

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: NNTP followup/response method
#26838
Author: Simon R Knight
Date: Fri, 13 Mar 1998 00:00
20 lines
1428 bytes
On 12 Mar 1998 16:05:44 GMT, mibsoft@mibsoftware.com (Forrest J.
Cavalier III) wrote:

>...Come on in, the water's fine.  (Even for Pascal programmers....)
>
>:-)

That's good !	: )

In the messages I have read today, there have been some
recommendations which are not present in the two RFC's (ie. 977 and
1036) that I have. The mibsoftware site provides further interesting
material, and it has just occurred to me that perhaps there is also be
an NNTP faq for this newsgroup which - as a new subscriber - I haven't
encountered yet ?

Simon R Knight

Re: NNTP followup/response method
#26854
Author: Simon Lyall
Date: Fri, 13 Mar 1998 00:00
34 lines
2109 bytes
Curt Welch <curt@kcwc.com> wrote:
>mibsoft@mibsoftware.com (Forrest J. Cavalier III) wrote:
>> >Hmm there might be a little bit of debate on this, the only reason you
>> >should ever delete existing ones is some stupid bug in INN.. Does anyone
>> >know if this has been fixed recently?

>It's not a stupid bug.  It's a feature!  Son-of-1036 says that news
>transports should not limit lines to any length, but:

>  "If  it  is  absolutely  necessary  for  an implementation to
>   impose a limit on the length of header lines, body lines, or
>   header  logical  lines,  that  limit  shall be at least 1000
>   octets, including EOL representations."

>Which means that some transports may not be able to handle lines which
>are over 1000 octets.  So, to make sure that the article will be able
>to get to every point in the Usenet network, you should limit your lines
>to 1000 octets or less.  Inn therefore forces new posts to follow this.

See my other post, Im not complaining about that limit. I *am*
complaining that it is junking articles recieved via ihave that have
logical header lines longer that 1000-odd characters, even if the actual
lines are all less than that limit.

The only limit should be on the length of actual lines not logical
headers.. 

-- 
Simon Lyall. | Looking for Work | Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.


Re: NNTP followup/response method
#26860
Author: Sam
Date: Fri, 13 Mar 1998 00:00
38 lines
2353 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <87vhtk7315.fsf@erlenstar.demon.co.uk>,
	Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:

>>>>>> "Sam" == Sam  <sam-001@dpinc.ml.org> writes:
> 
>  Sam> Yes.  One mail2news gateway I use does this.  I just truncate
>  Sam> all but the last five References: tags.  There's no need to keep
>  Sam> anything more.
>  
> >> Yes there is; you should always keep the first tag.
> 
>  Sam> Why's that?
> 
> Killfiling by thread.

I see, will do.

Although, usually when something like this is called for, the reason for
the thread being killfiled tends to reappear with sufficient frequency. 


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: http://www.geocities.com/SiliconValley/Peaks/5799/ for public key.

iQEVAwUBNQh4mJlaALjSq209AQGY3Af+JfuO/LbybW1lUfEdJJwnquuHbAaIKHE4
CVUnFZHlSr7mil0bTT6NRAqT1N5BsuLlq657qhdsDt5+A2HKyDLPGRRzPJ/zz7E2
TpRK9sE0u8szqTb4U/pndUGFnAS+aKob0xaGvODBSIPDgvBbIgvROiau3x52j/I3
NHltQPXHBpqWZ9hOxpwEct4uyS01e79qU6AWVVLB+SHvNXdWUgNouJ982Gd3b7/D
eym7XWD6aUfQUOWUmOeXJHklaxQfBWMZPnfb8NKPQ36Hqd9CgBX3b1Z4y5YToHiL
jv1YfTOZkgwhZj15XLjctyeI8q4TLKScxfgOb3HjhW71sA7bHtMfoA==
=QSaA
-----END PGP SIGNATURE-----

Re: NNTP followup/response method
#27183
Author: Fluffy
Date: Thu, 26 Mar 1998 00:00
18 lines
1358 bytes
Fluffy <fluffy@meow.org> wrote:
: Find this block:
: 
:         (void)strncpy(Password, av[2], sizeof Password - 1);
:         Password[sizeof Password - 1] = 0;
: 
: And change it to:
: 
:         (void)strncpy(Password, Glom(&av[2]), sizeof Password - 1);
:         Password[sizeof Password - 1] = 0;
: 

Duh.  That's in nnrpd/commands.c =)
-- 
"gems - harmless and highly amusing!"  -Gareth Gee, on Meowers

Re: NNTP followup/response method
#27194
Author: SiMoN Strack
Date: Thu, 26 Mar 1998 00:00
49 lines
2582 bytes
Curt Welch wrote:

> mibsoft@mibsoftware.com (Forrest J. Cavalier III) wrote:
> > In article <19980312133756.167$GQ@newsreader.com>, curt@kcwc.com wrote...
> > >The problem is in READline() ...
>
> > Can you be convinced to submit a patch?
>
> Yes.
>
> > This is not a buffer overrun
> > error, or anything like that, and 999 is close enough to 1000 for
> > me, but it would be nice to fix it, while the details are fresh
> > in your mind and you can test it.  Please?
>
> I'm looking at it but have to run now.  The same function is used
> for reading NNTP commands and seems to have to same problem of
> limiting the commands to 511 instead of 512 (counting the CR LF), so
> fixing it should solve both problems.  I've written the code but
> must do more testing to verify my work.
>
> And the second problem just posted by Simon Lyall <simon@darkmere.gen.nz>
> on the issue of rejecting lines > 1024 after unwrapping is an interesting
> problem also.  I'll look more into that as well and report back.  Off the
> top of my head I don't remember anything in the RFCs about max line length
> after header lines are unfolded.
>
> --
> Curt Welch                                            http://CurtWelch.Com/
> curt@kcwc.com                          Webmaster for http://NewsReader.Com/

While we are playing around in this area, how about a patch
that will allow whitespace in an authinfo password?
(Maybe make a smart Argify?)

SiMoN


--
Simon Strack    Computing @ Monash University Gippsland Australia
email - simon.strack@fcit.monash.edu.au
web - http://www-gscit.fcit.monash.edu.au/~simon
Can't complain about your life eh?  I bet you're not trying hard enough!




Re: NNTP followup/response method
#27195
Author: Forrest J. Cavalier III
Date: Thu, 26 Mar 1998 00:00
29 lines
1513 bytes
Posted and emailed.

In article <3519E9E5.598FE70@fcit.monash.edu.au>, 
simon.strack@fcit.monash.edu.au wrote...
[snip]
>
>While we are playing around in this area, how about a patch
>that will allow whitespace in an authinfo password?
>(Maybe make a smart Argify?)
>
>SiMoN

Actually the code is not in the same area at all.  

There is the practice of placing : -no- : in the user/password
fields of nnrp.access.  (See INN/samples/nnrp.access comments)

I suppose if you allowed whitespace in the password only, but disallowed
it in the user field, then it would still be OK.

About this patch....Are you requesting or volunteering?
  :-)

Forrest



Re: NNTP followup/response method
#27211
Author: Fluffy
Date: Thu, 26 Mar 1998 00:00
22 lines
1527 bytes
SiMoN Strack <simon.strack@fcit.monash.edu.au> wrote:
: While we are playing around in this area, how about a patch
: that will allow whitespace in an authinfo password?
: (Maybe make a smart Argify?)

Find this block:

        (void)strncpy(Password, av[2], sizeof Password - 1);
        Password[sizeof Password - 1] = 0;

And change it to:

        (void)strncpy(Password, Glom(&av[2]), sizeof Password - 1);
        Password[sizeof Password - 1] = 0;

Meow.
-- 
"Hell, it's getting to the point where everybody who is anybody will
have to have been dead at least once."           - Raoul Xemblinosky

Re: NNTP followup/response method
#27235
Author: Fluffy
Date: Fri, 27 Mar 1998 00:00
10 lines
1326 bytes
SiMoN Strack <simon.strack@fcit.monash.edu.au> wrote:
: Unfortunately, you don't get back leading whitespace, tabs, multiple
: spaces etc.

Tough noogies.  RFC 977 and the extensions draft are rather clear
about those being command and argument separators.  If you want to do
something trickier, use authinfo generic.

Re: NNTP followup/response method
#27253
Author: SiMoN Strack
Date: Fri, 27 Mar 1998 00:00
32 lines
1691 bytes
Fluffy wrote:

> Fluffy <fluffy@meow.org> wrote:
> : Find this block:
> :
> :         (void)strncpy(Password, av[2], sizeof Password - 1);
> :         Password[sizeof Password - 1] = 0;
> :
> : And change it to:
> :
> :         (void)strncpy(Password, Glom(&av[2]), sizeof Password - 1);
> :         Password[sizeof Password - 1] = 0;
> :
>
> Duh.  That's in nnrpd/commands.c =)

Unfortunately, you don't get back leading whitespace, tabs, multiple
spaces etc.

SiMoN

--
Simon Strack    Computing @ Monash University Gippsland Australia
email - simon.strack@fcit.monash.edu.au
web - http://www-gscit.fcit.monash.edu.au/~simon
Can't complain about your life eh?  I bet you're not trying hard enough!




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