🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
56 messages
56 total messages Page 1 of 2 Started by Stefaan Claes Sat, 19 Oct 2002 21:47
Page 1 of 2 • 56 total messages
Message-ID generated by newsserver
#61534
Author: Stefaan Claes
Date: Sat, 19 Oct 2002 21:47
24 lines
1897 bytes
Hello,

I found out that the message-ID is generated by the news server if
it isn't already present (i.e. if the news client does not provide one).
I searched with Google to find out if all newsservers do this and I found
out that several people wrote that all servers do this.

I believe them but I'd like to find the relevant RFC where this is described.

RFC1036 says that the message-ID is one of the 'required' header lines.
If it is required, does that mean the news client MUST generate a message-ID?
Apparently not because newsservers generate and add a message-ID to the
headers if the news client doesn't provide a message-ID.

Is there an RFC that says this expliticly? I haven't found one.
And if there is no such RFC, why not?


Stefaan

-- 
Stefaan Claes, Hove, Antwerpen, Belgium, Europe, <sclaes@aaug.net>
Re: Message-ID generated by newsserver
#61535
Author: Russ Allbery
Date: Sat, 19 Oct 2002 22:01
27 lines
2020 bytes
In news.software.nntp, Stefaan Claes <sclaes@aaug.net> writes:

> I found out that the message-ID is generated by the news server if it
> isn't already present (i.e. if the news client does not provide one).  I
> searched with Google to find out if all newsservers do this and I found
> out that several people wrote that all servers do this.

> I believe them but I'd like to find the relevant RFC where this is
> described.

It isn't.

However, you can rely on Message-ID, Date, and Path always being generated
for you by the server if not already present in the article given to POST.
Every server works that way.

> Is there an RFC that says this expliticly? I haven't found one.  And if
> there is no such RFC, why not?

There are no RFCs that fully and accurately describe how Usenet works.

-- 
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: Message-ID generated by newsserver
#61536
Author: Curt Welch
Date: Sun, 20 Oct 2002 02:46
48 lines
3405 bytes
Stefaan Claes <sclaes@aaug.net> wrote:
> Hello,
>
> I found out that the message-ID is generated by the news server if
> it isn't already present (i.e. if the news client does not provide one).
> I searched with Google to find out if all newsservers do this and I found
> out that several people wrote that all servers do this.
>
> I believe them but I'd like to find the relevant RFC where this is
> described.
>
> RFC1036 says that the message-ID is one of the 'required' header lines.
> If it is required, does that mean the news client MUST generate a
> message-ID? Apparently not because newsservers generate and add a
> message-ID to the headers if the news client doesn't provide a
> message-ID.
>
> Is there an RFC that says this expliticly? I haven't found one.
> And if there is no such RFC, why not?

The message must have a Message-Id before it can be stored on the server or
sent to peers, but the message which is sent in a POST command does not
have to be a complete message.  As you found out, you don't have to include
the Message-ID, the Date:, or the Path.  And, in most cases, it's better if
you leave them off.  All you need to include is the Subject:, From:, and
Newsgroups:.

The Date: header is important to get correct because messages can be
rejected or dropped if the date is incorrect.  The clocks and the timezones
on a typical PC is not normally as accurate as the clocks on the the
servers, so it's better to set the server put the Date: on the article to
improve the odds that the date (and timezone) is correct.  The disadvantage
is that you don't get to see the users real timezone/local-time in the
article of his time is different from the server he's using.

I thought there was an RFC which talked about the fact that the message
sent in the POST command was a "proto-message" and not a real message.
i.e., it was normal to leave those headers out.  Check the NNTP RFCs, you
might find something about it there under the POST command.

But like has been said, the RFCs don't tend to define Usenet.  People
simply try to document Usenet in the RFCs after the fact.  In most cases
when people have tried to use the RFCs to change usenet, it fails.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61538
Author: Russ Allbery
Date: Sun, 20 Oct 2002 06:18
13 lines
1446 bytes
Curt Welch <curt@kcwc.com> writes:

> I thought there was an RFC which talked about the fact that the message
> sent in the POST command was a "proto-message" and not a real message.

That's USEFOR.

-- 
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: Message-ID generated by newsserver
#61562
Author: Stefaan Claes
Date: Tue, 22 Oct 2002 17:08
31 lines
2256 bytes
In article <20021019224600.727$Ng@newsreader.com>,
   Curt Welch <curt@kcwc.com> wrote:
[snip]

> I thought there was an RFC which talked about the fact that the message
> sent in the POST command was a "proto-message" and not a real message.
> i.e., it was normal to leave those headers out.  Check the NNTP RFCs, you
> might find something about it there under the POST command.

I can't find anything about a "proto-message" and the inclusion of
a message-ID when the message is sent by to a newsserver (cf the POST
command).

BTW: I looked at several RFC's and one draft (son of RFC1036)

> But like has been said, the RFCs don't tend to define Usenet.  People
> simply try to document Usenet in the RFCs after the fact.  In most cases
> when people have tried to use the RFCs to change usenet, it fails.

OK. But I assume the convention (that the server generates the message-ID
if there isn't one yet) is not new.
Why is there no RFC which describes this? Or is there a draft about this?

Someone suggested to 'use the source'. But why should I look at one
particular implementation? (i.e. the sources of one newsserver)
It won't tell me whether a certain feature is implemented by *all*
newsservers.

-- 
Stefaan Claes, Hove, Antwerpen, Belgium, Europe, <sclaes@aaug.net>
Re: Message-ID generated by newsserver
#61566
Author: Curt Welch
Date: Tue, 22 Oct 2002 18:14
90 lines
5363 bytes
Stefaan Claes <sclaes@aaug.net> wrote:
> In article <20021019224600.727$Ng@newsreader.com>,
>    Curt Welch <curt@kcwc.com> wrote:
> [snip]
>
> > I thought there was an RFC which talked about the fact that the message
> > sent in the POST command was a "proto-message" and not a real message.
> > i.e., it was normal to leave those headers out.  Check the NNTP RFCs,
> > you might find something about it there under the POST command.
>
> I can't find anything about a "proto-message" and the inclusion of
> a message-ID when the message is sent by to a newsserver (cf the POST
> command).

It seems it's in the Usefor stuff according to the other post here.  Though
that strikes me as being in the wrong place. check out
http://www.landfield.com/usefor/ for more on that.

> BTW: I looked at several RFC's and one draft (son of RFC1036)

Checking 1998 Stan Barber deaft-ieft-nntpext-base-05.txt draft, I see the
following wording under the POST command:

"The intent is that the server just passes the incoming message to be
posted to the server installations's news posting software, which is not
part of this specification".

This is the cop-out in the spec (and in the orginal NNTP code) which hides
the details you are looking for.  It's the "news posting software" which
has the behavior of adding the missing headers as required.

> > But like has been said, the RFCs don't tend to define Usenet.  People
> > simply try to document Usenet in the RFCs after the fact.  In most
> > cases when people have tried to use the RFCs to change usenet, it
> > fails.
>
> OK. But I assume the convention (that the server generates the message-ID
> if there isn't one yet) is not new.

That's right.  It's very old.  As far as I know, it's always been done like
that.  My experience goes back to about 1990.  It was common behavior of
news software before NNTP was created.  NNTP was first created as a simple
network front-end to news software which was previoslly a local-machine
only application which moved news articles using uucp, not internet
protocols.

You have stumbled on a issue which was part of how the news applicaion
worked and not something that has ever made it into the spec about how the
network interface to news works.

It should be part of the NNTP spec, but just isn't.

> Why is there no RFC which describes this? Or is there a draft about this?

No one has taken the time to write it.  Maybe you would like to?  There are
many details like that that never made it into any RFC.  The RFCs are
Internet standards.  Usenet did not start out as being part of the
Internet.

> Someone suggested to 'use the source'. But why should I look at one
> particular implementation? (i.e. the sources of one newsserver)
> It won't tell me whether a certain feature is implemented by *all*
> newsservers.

It will tell you a lot.  Look at the inn source.  At one time, it was the
only real NNTP server in use.  All servers written after inn were based on
INN.

If you can't find an answer in the RFCs, you have to simply try out a lot
of different servers to see what they all do, and do thing like "read the
source". That's just how Usenet works.  Usenet source and Usenet standards
work just like the rest of Usenet.  No one is in charge.  Everyone does
whatever they can get away with - which is mostly: "If it works, you can do
it".

Here's another NNTP example that has never been correctly documented.  For
the return codes for ARTICLE, HEAD, BODY, and STAT, there are two return
codes for "article not found", 423, and 430.  Just try to figure out when
the server is supposed to return one and when it is supposed to return the
other.  Dnews had it wrong for many years.  My server had it wrong for a
long time.  And if you get it wrong, it tends to break various newsreaders.

The only answer about what to return lies in the inn source.  Because INN
is the granfather of all NNTP based news servers, most behavior issues that
come into question like yours can be answered by looking at what INN does.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61567
Author: J.B. Moreno
Date: Tue, 22 Oct 2002 19:12
20 lines
1877 bytes
In article <4b8981c09esclaes@aaug.net>, 
 Stefaan Claes <sclaes@aaug.net> wrote:

> Why is there no RFC which describes this? Or is there a draft about this?

It's not mentioned in an RFC because huge swaths of how NetNews is
handled isn't documented, you simply have to be either (a) familiar
with it already, or (b) willing to ask here or in news.software.readers
when you run into something you aren't clear on.

In this case the answer is clear: the server will *always* generate the
ID if it's not already present (and sometimes even then).

I believe USEFOR covers this particular instance, but while it and
other sources will help you become acquainted with how things work, the
definite answer in a lot of cases is only going to come by asking.

-- 
J.B. Moreno
Re: Message-ID generated by newsserver
#61574
Author: Vincent Lefevre
Date: Tue, 22 Oct 2002 23:00
21 lines
2198 bytes
In article <20021019224600.727$Ng@newsreader.com>,
  Curt Welch <curt@kcwc.com> wrote:

> The message must have a Message-Id before it can be stored on the server or
> sent to peers, but the message which is sent in a POST command does not
> have to be a complete message.  As you found out, you don't have to include
> the Message-ID, the Date:, or the Path.  And, in most cases, it's better if
> you leave them off.  All you need to include is the Subject:, From:, and
> Newsgroups:.

Concerning the Message-ID, it is better to generate it to avoid
duplicates, when the server has some problems (timeout before the
server has sent the confirmation that the message has correctly
been posted, though the message has really been posted).

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61576
Author: Jesper Harder
Date: Tue, 22 Oct 2002 23:19
23 lines
2070 bytes
curt@kcwc.com (Curt Welch) writes:

> The Date: header is important to get correct because messages can be
> rejected or dropped if the date is incorrect.  The clocks and the timezones
> on a typical PC is not normally as accurate as the clocks on the the
> servers, so it's better to set the server put the Date: on the article to
> improve the odds that the date (and timezone) is correct.

Usefor disagrees:

,----
| 5.1.  Date
| 
|    The Date-header contains the date and time that the article was
|    prepared by the poster ready for transmission and SHOULD express the
|    poster's local time.
`----

If I compose an article in my posting agent while I'm off-line and I
don't include the Date-header in the proto article, then the Date
supplied by the news server (injecting agent) won't reflect the time
when the article was prepared by me.
Re: Message-ID generated by newsserver
#61577
Author: Russ Allbery
Date: Wed, 23 Oct 2002 00:32
29 lines
2156 bytes
Jesper Harder <harder@myrealbox.com> writes:

> Usefor disagrees:

> ,----
> | 5.1.  Date
> | 
> |    The Date-header contains the date and time that the article was
> |    prepared by the poster ready for transmission and SHOULD express the
> |    poster's local time.
> `----

> If I compose an article in my posting agent while I'm off-line and I
> don't include the Date-header in the proto article, then the Date
> supplied by the news server (injecting agent) won't reflect the time
> when the article was prepared by me.

It depends on how you define "prepared by the poster ready for
transmission," but for practical reasons you want to let the server
generate the Date, or generate the Date when actually posting, when
reading and writing off-line.  Otherwise, if you defer the post more than
a few days, the server may reject it for being too old.

-- 
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: Message-ID generated by newsserver
#61578
Author: Curt Welch
Date: Wed, 23 Oct 2002 01:00
114 lines
7288 bytes
Jesper Harder <harder@myrealbox.com> wrote:
> curt@kcwc.com (Curt Welch) writes:
>
> > The Date: header is important to get correct because messages can be
> > rejected or dropped if the date is incorrect.  The clocks and the
> > timezones on a typical PC is not normally as accurate as the clocks on
> > the the servers, so it's better to set the server put the Date: on the
> > article to improve the odds that the date (and timezone) is correct.
>
> Usefor disagrees:

Yeah, many people seem to.  Of course they are all wrong. :)

> ,----
> | 5.1.  Date
> |
> |    The Date-header contains the date and time that the article was
> |    prepared by the poster ready for transmission and SHOULD express the
> |    poster's local time.
> `----
>
> If I compose an article in my posting agent while I'm off-line and I
> don't include the Date-header in the proto article, then the Date
> supplied by the news server (injecting agent) won't reflect the time
> when the article was prepared by me.

The Date: header plays a dual role on Usenet which causes these problems.

Users want to use the Date: as the time they either wrote the message or
logicaly "sent" it.  And when they compose the message off-line, that date,
as you point out, can be very different from the time it is actually sent
to the first Usenet server.

The news servers however use the Date: header as a "post date".  They need
to know when it was actually posted to Usenet to prevent old articles from
looping around Usenet forever.  The primary way old articles get rejected
is by the Message-ID.  Servers don't accept a second copy of an article
with the same message-id.  But all servers have limited memory for
Message-IDs, (which is normlaly about the same as the retention of the
server).  So, to prevent an old article from showing up on the server a
second time a few weeks later, they use the Date: header to reject any
articles older than the retention of their history database.  For this to
work corrctly, the Date: header _MUST_ accurately document the time it was
first posted, not the time it was written.

A transit server with a 6 hour retention should be able to work with a 6
hour history database.  Any article over 6 hours old should be rejected.
But because Date: headers are so often wrong, you can't do what you should
be able to do and you end up having to use a much longer history database.
But you still need to reject old articles (or at least not pass them to
your peers), so you still have to reject articles by the value of their
Date: header.

Using Date: as a post date is also a very good way to tell when your
incomming feeds are backlogged.  If the date: is not a post date, or is not
accurate, then this is one more thing that "doesn't work well".

If you try to post an article a week after you write it, you run the real
risk of having it dropped by servers.  I refuse to pass any articles over 2
days old to any of my peers for example.  If you write an aritcle off-line
which doesn't get posted for a few days, it will have some problems getting
transported around Usenet correctly.

And personally, I've never undstood the desire to know the posters local
time.  Most the time, when I look at dates, what I really want to know is
when they were posted relative to some other article, or relative to _my_
local time. And when I try to compare dates between two different articles,
the last thing I want to see is the posters local time.  Gee, he posted it
as 21:34 BST, and this guy posted it at 15:32 PST, which one posted it
first and by how much time and how log ago was it written - was it 15
minutes ago or an hour an 15 minutes?

My newsreasder (newsreader.com) converts all dates to the _readers_ local
time so it's easy to see when articles were posted and to know how long ago
it was posted.  If it's 8:36 my time and the article says it was posted at
8:30 I know it was posted 6 minutes ago.  Why would I want to know it was
posted at 02:30 "his" time?  It's really none of my business to know that
this guys likes to write usenet messages at 2:30 in the morning.

In the 5 or so years my newsreader has worked this way, I've never received
a single request to make it show the posters "local time".

If users want to put their local time on their articles, that's fine of
course.  But the problem with newsreaders trusting the clock on the user's
PC is that it's seldom very accurate.  And the worst problem is that many
users have the clock set right (within a few minutes), but the timezone is
wrong.  The PC came configued for US west-cost timezone, but the guy is on
the east cost so his clock is 3 hours off.  A huge number of articles on
Usenet have dates that are off by hours because of this.

So we have this conflicting need for Date: to reflect "post time" to help
Usenet servers correctly transport articles, or "local time" to help people
that for some misguided reason reason think that is useful [:)], or the
"date written" because people feel that is more relevent than "date posted"
in the cases where there is a significant delay between the two.

I agree that "date written" is what I would prefer to see on an article
instead of "date posted".  But, to get the "date written" you have to trust
the clock on the user's PC.  And because such a large percentage of users
have their timezone set wrong on the computers, you end up with multiple
hour errors in the date.  So for those users, you aren't getting the true
"date written".  And beacuse most people write and post at the same time,
using the "date posted" is the same as "date written".

So, if you let the server time-stamp the articles as "date posted", I think
there's a good chance that you would end up with a more accurate "date
written" than if you let the users's PC time-stamp the article.  And at the
same time, end up with a more accurate "date-posted" for helping usenet to
work better at the same time.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61579
Author: Curt Welch
Date: Wed, 23 Oct 2002 01:11
31 lines
2760 bytes
Vincent Lefevre <vincent+news@vinc17.org> wrote:
> In article <20021019224600.727$Ng@newsreader.com>,
>   Curt Welch <curt@kcwc.com> wrote:
>
> > The message must have a Message-Id before it can be stored on the
> > server or sent to peers, but the message which is sent in a POST
> > command does not have to be a complete message.  As you found out, you
> > don't have to include the Message-ID, the Date:, or the Path.  And, in
> > most cases, it's better if you leave them off.  All you need to include
> > is the Subject:, From:, and Newsgroups:.
>
> Concerning the Message-ID, it is better to generate it to avoid
> duplicates, when the server has some problems (timeout before the
> server has sent the confirmation that the message has correctly
> been posted, though the message has really been posted).

I don't think so.  But then I've never had problems with timeouts like that
so I don't see that as a big enough problem to worry about.  But maybe with
some servers that's a big enough problem that generating the Message-ID and
making sure to use the same one when you re-try the post later might be an
advantage.

But to me, any server that can timeout on a post might also put the
message-id into the history but then fail to actually post the article. So
if you try to repost with the same message-id that may get rejected as a
dup even though the first article failed to be posted.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61581
Author: Russ Allbery
Date: Wed, 23 Oct 2002 01:22
37 lines
2915 bytes
Curt Welch <curt@kcwc.com> writes:

> I don't think so.  But then I've never had problems with timeouts like
> that so I don't see that as a big enough problem to worry about.  But
> maybe with some servers that's a big enough problem that generating the
> Message-ID and making sure to use the same one when you re-try the post
> later might be an advantage.

> But to me, any server that can timeout on a post might also put the
> message-id into the history but then fail to actually post the
> article. So if you try to repost with the same message-id that may get
> rejected as a dup even though the first article failed to be posted.

It's not necessarily the server.  It's the same issue as you have with
SMTP; if you send the message and then get a network timeout before you
get the response to POST, you don't know if it's been sent or not.

The current NNTP RFC draft, in the section on POST, has:

    The client SHOULD NOT assume that the article has been successfully
    transferred unless it receives an affirmative response from the
    server.  Since, however, the affirmative response may have been sent
    and lost, the client SHOULD use the same message-id in the article
    when resending it or check whether the article was successfully posted
    before resending it to ensure that the resend will not result in a
    duplicate article.

The SHOULD is intentional (meaning, in standards-speak, that you ideally
will do this, and should make an effort to do it, but there may be
circumstances under which you can't or where it isn't a good idea).

-- 
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: Message-ID generated by newsserver
#61582
Author: Vincent Lefevre
Date: Wed, 23 Oct 2002 03:22
27 lines
2575 bytes
In article <20021022210009.657$CZ@newsreader.com>,
  Curt Welch <curt@kcwc.com> wrote:

> A transit server with a 6 hour retention should be able to work with a 6
> hour history database.  Any article over 6 hours old should be rejected.

6 hours is quite short. You need to take into account the fact that
some servers may be down for several hours.

> If users want to put their local time on their articles, that's fine of
> course.  But the problem with newsreaders trusting the clock on the user's
> PC is that it's seldom very accurate.  And the worst problem is that many
> users have the clock set right (within a few minutes), but the timezone is
> wrong.  The PC came configued for US west-cost timezone, but the guy is on
> the east cost so his clock is 3 hours off.  A huge number of articles on
> Usenet have dates that are off by hours because of this.

OK, but the solution is to adjust the clock (I often warn the users
when their clock is set incorrectly). If there's a workaround with
Usenet, there is none for the mail.

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61583
Author: Vincent Lefevre
Date: Wed, 23 Oct 2002 03:32
44 lines
3285 bytes
In article <20021022211105.892$FR@newsreader.com>,
  Curt Welch <curt@kcwc.com> wrote:

>> In article <20021019224600.727$Ng@newsreader.com>,
>>   Curt Welch <curt@kcwc.com> wrote:
>>
>> Concerning the Message-ID, it is better to generate it to avoid
>> duplicates, when the server has some problems (timeout before the
>> server has sent the confirmation that the message has correctly
>> been posted, though the message has really been posted).

> I don't think so.  But then I've never had problems with timeouts like that
> so I don't see that as a big enough problem to worry about.

Well, many users had this problem in the past with one or two big
French news servers, and we could see lots of duplicated articles
because of this. :(

I recently had timeout problems with a conventional dial-up connection
(probably because of a bad phone line). But these ones were timeout
on the dial-up connection, typically when a few KB of data were sent.
However, the problem is the same: the news article isn't regarded as
sent.

> But maybe with some servers that's a big enough problem that
> generating the Message-ID and making sure to use the same one when
> you re-try the post later might be an advantage.

> But to me, any server that can timeout on a post might also put the
> message-id into the history but then fail to actually post the article. So
> if you try to repost with the same message-id that may get rejected as a
> dup even though the first article failed to be posted.

But to be able to reject the article, the article must have a
message-id before it is posted. Otherwise, the news server just
accepts the article and generates a new message-id. Without a
message-id, the only solution would be to compare the full text.

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61584
Author: Vincent Lefevre
Date: Wed, 23 Oct 2002 03:35
42 lines
3300 bytes
In article <20021022211105.892$FR@newsreader.com>,
  Curt Welch <curt@kcwc.com> wrote:

[Vincent Lefevre]
>> Concerning the Message-ID, it is better to generate it to avoid
>> duplicates, when the server has some problems (timeout before the
>> server has sent the confirmation that the message has correctly
>> been posted, though the message has really been posted).

> I don't think so.  But then I've never had problems with timeouts like that
> so I don't see that as a big enough problem to worry about.

Well, many users had this problem in the past with one or two big
French news servers, and we could see lots of duplicated articles
because of this. :(

I recently had timeout problems with a conventional dial-up connection
(probably because of a bad phone line). But these ones were timeout
on the dial-up connection, typically when a few KB of data were sent.
However, the problem is the same: the news article isn't regarded as
sent.

> But maybe with some servers that's a big enough problem that
> generating the Message-ID and making sure to use the same one when
> you re-try the post later might be an advantage.

> But to me, any server that can timeout on a post might also put the
> message-id into the history but then fail to actually post the article. So
> if you try to repost with the same message-id that may get rejected as a
> dup even though the first article failed to be posted.

But to be able to reject the article, the article must have a
message-id before it is posted. Otherwise, the news server just
accepts the article and generates a new message-id. Without a
message-id, the only solution would be to compare the full text.

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61585
Author: Curt Welch
Date: Wed, 23 Oct 2002 04:00
43 lines
3266 bytes
Vincent Lefevre <vincent+news@vinc17.org> wrote:
> In article <20021022211105.892$FR@newsreader.com>,
>   Curt Welch <curt@kcwc.com> wrote:
>
> [Vincent Lefevre]
> >> Concerning the Message-ID, it is better to generate it to avoid
> >> duplicates, when the server has some problems (timeout before the
> >> server has sent the confirmation that the message has correctly
> >> been posted, though the message has really been posted).
>
> > I don't think so.  But then I've never had problems with timeouts like
> > that so I don't see that as a big enough problem to worry about.
>
> Well, many users had this problem in the past with one or two big
> French news servers, and we could see lots of duplicated articles
> because of this. :(
>
> I recently had timeout problems with a conventional dial-up connection
> (probably because of a bad phone line). But these ones were timeout
> on the dial-up connection, typically when a few KB of data were sent.
> However, the problem is the same: the news article isn't regarded as
> sent.

The only problem happens after the closing DOT is sent and before the
response is received.  Any type of timeout or network error that happens
as the data is being sent is harmless.  The article will never be posted
in that case and if it is, it's not the fault of the client.  The client
can always safely assume that nothing was posted if the error happens
before the closing DOT CR LF is sent.

> Without a
> message-id, the only solution would be to compare the full text.

Which I think should be done by the User and not the client software in
_all_ cases where the post failed after the closing DOT was sent and before
a response was received from the server.  The NNTP POST command is just not
strong enough to allow automatic reposts in those cases without having
problems such as lost articles or duplicated articles.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61587
Author: Juergen Helbing
Date: Wed, 23 Oct 2002 05:34
21 lines
1574 bytes
curt@kcwc.com (Curt Welch) wrote:

>In the 5 or so years my newsreader has worked this way, I've never received
>a single request to make it show the posters "local time".

The latest sickness on Usenet are multithread autoposters.
If someone uses such a tool to post binaries on four connections
simultanously then the overview about the multiparts is a PITA.

I expect that this can be only fixed by creating defined Date stamps
for all messages - so that an 'intended order' can be achieved.

btw.: Threading is also based on Date stamps - and it is very helpful
to know/see who answered first - and who did it later.... for the
context of discussions.
So the _real_ creation date (not the posting date) _is_ important.

-- 
Juergen

Re: Message-ID generated by newsserver
#61588
Author: Juergen Helbing
Date: Wed, 23 Oct 2002 05:53
42 lines
2610 bytes
curt@kcwc.com (Curt Welch) wrote:

>The only problem happens after the closing DOT is sent and before the
>response is received.  

Unfortunately this time is usually very long (seconds) - and can be 
even longer on busy server and for very large (binary) posts.
So the probabiliy for a failure is maximized by the basic method.

>The NNTP POST command is just not
>strong enough to allow automatic reposts in those cases without having
>problems such as lost articles or duplicated articles.

The only solution would be a client side confirmation
to the 240/440/441 responses to a POST command.
Something as a "send finally" command.
But then the problem would be again a timeout during the reponse
of that "send finally" command......

(Any other ideas how to realize a 'perfect' POST command ?)


I've been struggeling a lot with the reliability of the POST command
and found that the best solution would be to have a client-side
generated Message-ID. Then a timeout _can_ be fixed automatically:
The client asks the hosts first (stat command) if it has the message
already. If yes, then the last post was successful - and a retransmission
is not necessary. If no, then the article is posted again with the same
msg-id. If the host had the msgid not yet in his history database (time-lags)
, but had the article already, then no duplicates can be created.
In fact this is a simulation of the IHAVE command ;-)
In all cases just one message is posted perfectly.

Writing binary autoposters with an automatic "resume after failure"
feature is possible - and highly reliable with this method.

Another nice topic for "BCP Binary Usenet"

-- 
Juergen

Re: Message-ID generated by newsserver
#61590
Author: Curt Welch
Date: Wed, 23 Oct 2002 06:36
49 lines
3766 bytes
Russ Allbery <rra@stanford.edu> wrote:

> It's not necessarily the server.  It's the same issue as you have with
> SMTP; if you send the message and then get a network timeout before you
> get the response to POST, you don't know if it's been sent or not.

Yeah, I understant the problem.  Though I had never thought much about it.

> The current NNTP RFC draft, in the section on POST, has:
>
>     The client SHOULD NOT assume that the article has been successfully
>     transferred unless it receives an affirmative response from the
>     server.  Since, however, the affirmative response may have been sent
>     and lost, the client SHOULD use the same message-id in the article
>     when resending it or check whether the article was successfully
>     posted before resending it to ensure that the resend will not result
>     in a duplicate article.
>
> The SHOULD is intentional (meaning, in standards-speak, that you ideally
> will do this, and should make an effort to do it, but there may be
> circumstances under which you can't or where it isn't a good idea).

That's interesting.

Well, I think it really depends on what you are talking about.

For a client that will try a re-post only on the manual command of the
user, generating new message ids may be overall better and is not cleary
wrong in my mind.  You do have a chance of duplicates, but that I think is
fairly balanced against the odds of a user not being able to post a message
because a broken server has decided to never accept the article with that
Message-ID.    But for any client that could hang in a loop reposting the
same article over and over forever until it gets posted correctly, using
the same message-Id is really a MUST.  Even then it's a very dangerous
thing to do if you get a network error or timeout after you have sent the
closing DOT.  If that happens, the post should be aborted and not re-tried
until a person looks at it and tells the software to try it again manually.

From my point of view, once the client has gotten into that protocol gray
area that happens after the closing DOT is sent and before a response is
received, you really can't assume anything about whether it's posted, or if
it was posted, OR what Message-ID it might have been posted with.  Any
attempt to programmatically fix the problem puts the client at risk of
doing something wrong.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61593
Author: Vincent Lefevre
Date: Wed, 23 Oct 2002 14:02
30 lines
2412 bytes
In article <20021023000055.863$zq@newsreader.com>,
  Curt Welch <curt@kcwc.com> wrote:

> The only problem happens after the closing DOT is sent and before the
> response is received.

This was probably my case.

>> Without a message-id, the only solution would be to compare the
>> full text.

> Which I think should be done by the User and not the client software in
> _all_ cases where the post failed after the closing DOT was sent and before
> a response was received from the server.

How can the user do this???

> The NNTP POST command is just not strong enough to allow automatic
> reposts in those cases without having problems such as lost articles
> or duplicated articles.

If the message-id is created by the client, there is no problem with
duplicated articles, since the server can do the check.

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61597
Author: Curt Welch
Date: Wed, 23 Oct 2002 17:16
33 lines
2709 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> curt@kcwc.com (Curt Welch) wrote:

> >The NNTP POST command is just not
> >strong enough to allow automatic reposts in those cases without having
> >problems such as lost articles or duplicated articles.
>
> The only solution would be a client side confirmation
> to the 240/440/441 responses to a POST command.
> Something as a "send finally" command.
> But then the problem would be again a timeout during the reponse
> of that "send finally" command......

Right, that just moves the problem to step 2.  It doesn't fix the problem.
The only solution to this problems is a "harmless" re-send.

> (Any other ideas how to realize a 'perfect' POST command ?)
>
> I've been struggeling a lot with the reliability of the POST command
> and found that the best solution would be to have a client-side
> generated Message-ID.

Yes, that is the only way to make it work.  But for servers which change or
generate their own Message-IDs which overrides the user supplied one, they
break the ability for this to work.  There aren't many that do that however
so most the time, Generating a Messge-ID and reposting with the same
Message-ID is the best way to to do that.  Any autoposting software that
can be set up to try a repost automatically multiple times must do that.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61598
Author: Curt Welch
Date: Wed, 23 Oct 2002 17:26
51 lines
3463 bytes
Vincent Lefevre <vincent+news@vinc17.org> wrote:
> In article <20021023000055.863$zq@newsreader.com>,
>   Curt Welch <curt@kcwc.com> wrote:
>
> > The only problem happens after the closing DOT is sent and before the
> > response is received.
>
> This was probably my case.
>
> >> Without a message-id, the only solution would be to compare the
> >> full text.
>
> > Which I think should be done by the User and not the client software in
> > _all_ cases where the post failed after the closing DOT was sent and
> > before a response was received from the server.
>
> How can the user do this???

You post an article to news.software.nntp and get an error.  You check the
group to see if the message you just wrote is there.  If not, you try
again.  That's all I'm talking about.

> > The NNTP POST command is just not strong enough to allow automatic
> > reposts in those cases without having problems such as lost articles
> > or duplicated articles.
>
> If the message-id is created by the client, there is no problem with
> duplicated articles, since the server can do the check.

There is because some servers ignore the Message-ID you generate and put
their own in it's place.  Because people have created servers like this, it
breaks the ability to safely re-send articles that fail at that point of a
post.

However, one well-known server which does this (airnews), I think generates
Message-IDs which are some type of hash of the content of the message.  And
if you post the same message a second time, it might end up with the same
Message-Id which will block the duplicate post (my understanding is that
this is exactly why they generate their own message-ids).  If this is true,
then I don't know if there are any other servers still running today which
have the problem of modifying the Message-ID.  None of the standard servers
I know of do this by default, it was only done as local hacks at a site
here or there.

So, most the time, reposting with a user generated Message-ID will be safe,
it's just not 100% safe in practice.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61600
Author: J.B. Moreno
Date: Wed, 23 Oct 2002 18:22
14 lines
1745 bytes
In article <20021023131655.666$23@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> Yes, that is the only way to make it work.  But for servers which change or
> generate their own Message-IDs which overrides the user supplied one, they
> break the ability for this to work.

Well, at least one such server provides the message-id in the 240/340
response codes -- so the client could keep track of that and try it as
well as the one it supplied.

-- 
J.B. Moreno
Re: Message-ID generated by newsserver
#61603
Author: Curt Welch
Date: Wed, 23 Oct 2002 20:29
22 lines
2299 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <20021023131655.666$23@newsreader.com>,
>  Curt Welch <curt@kcwc.com> wrote:
>
> > Yes, that is the only way to make it work.  But for servers which
> > change or generate their own Message-IDs which overrides the user
> > supplied one, they break the ability for this to work.
>
> Well, at least one such server provides the message-id in the 240/340
> response codes -- so the client could keep track of that and try it as
> well as the one it supplied.

Yes, that's true.  My server is one that does that and if the convention
was a standard, then you are right, that could be used to fix the
problem even for servers which changed the Messgae-ID (which of course is
why were were trying to make this convention a standard in the first
place).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61604
Author: Kai Henningsen
Date: Wed, 23 Oct 2002 23:01
15 lines
1748 bytes
curt@kcwc.com (Curt Welch)  wrote on 22.10.02 in <20021022141402.799$pP@newsreader.com>:

> The only answer about what to return lies in the inn source.  Because INN
> is the granfather of all NNTP based news servers, most behavior issues that
> come into question like yours can be answered by looking at what INN does.

Umm, surely the grandfather is NNTP 1.5?! You know, the original  
implementation, used alongside C-News?

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Message-ID generated by newsserver
#61605
Author: Kai Henningsen
Date: Wed, 23 Oct 2002 23:05
34 lines
2410 bytes
rra@stanford.edu (Russ Allbery)  wrote on 22.10.02 in <yln0p6ro58.fsf@windlord.stanford.edu>:

> Jesper Harder <harder@myrealbox.com> writes:
>
> > Usefor disagrees:
>
> > ,----
> > | 5.1.  Date
> > |
> > |    The Date-header contains the date and time that the article was
> > |    prepared by the poster ready for transmission and SHOULD express the
> > |    poster's local time.
> > `----
>
> > If I compose an article in my posting agent while I'm off-line and I
> > don't include the Date-header in the proto article, then the Date
> > supplied by the news server (injecting agent) won't reflect the time
> > when the article was prepared by me.
>
> It depends on how you define "prepared by the poster ready for
> transmission," but for practical reasons you want to let the server
> generate the Date, or generate the Date when actually posting, when
> reading and writing off-line.  Otherwise, if you defer the post more than
> a few days, the server may reject it for being too old.

Surely the typical offline case is to defer for at most a few hours.


Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Message-ID generated by newsserver
#61606
Author: Kai Henningsen
Date: Wed, 23 Oct 2002 23:17
47 lines
3064 bytes
curt@kcwc.com (Curt Welch)  wrote on 23.10.02 in <20021022210009.657$CZ@newsreader.com>:

> A transit server with a 6 hour retention should be able to work with a 6
> hour history database.

*Nobody* should expect a 6 hour history to be reasonable. Or a 60 hour  
history, for that matter.

One week is about the absolute minimum one can reasonably expect to get  
away with. Anything else is gross negligence.

> But because Date: headers are so often wrong, you can't do what you should
> be able to do

No, you should not be able to do that.

> risk of having it dropped by servers.  I refuse to pass any articles over 2
> days old to any of my peers for example.

And given that transit times over two days are still common on the less- 
connected parts of the net, that means you deliberately introduce holes.

> And personally, I've never undstood the desire to know the posters local
> time.  Most the time, when I look at dates, what I really want to know is
> when they were posted relative to some other article, or relative to _my_
> local time.

Whereas *I* want to know when they were *written* relative to other  
articles - the actual posting time is almost completely meaningless: it's  
no different from any time any intermediate machine received that article.

We don't have Received: headers on news articles, because those times  
aren't considered worth the bytes.

> And when I try to compare dates between two different articles,
> the last thing I want to see is the posters local time.

No, that is for when a poster sounds slightly incoherent, and I look at  
the Date: header and see it says "03:45", and say "aha! he needs more  
sleep, I shouldn't take this too seriously".

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Message-ID generated by newsserver
#61607
Author: J.B. Moreno
Date: Thu, 24 Oct 2002 00:32
27 lines
2423 bytes
In article <20021023162937.888$t5@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> >  Curt Welch <curt@kcwc.com> wrote:
> >
> > > Yes, that is the only way to make it work.  But for servers which
> > > change or generate their own Message-IDs which overrides the user
> > > supplied one, they break the ability for this to work.
> >
> > Well, at least one such server provides the message-id in the 240/340
> > response codes -- so the client could keep track of that and try it as
> > well as the one it supplied.
> 
> Yes, that's true.  My server is one that does that and if the convention
> was a standard, then you are right, that could be used to fix the
> problem even for servers which changed the Messgae-ID (which of course is
> why were were trying to make this convention a standard in the first
> place).

It's been adopted into INN and various other programs -- there's no
guarantee that it'll work, but there's a decent enough chance that it's
worth thew effort of including such a test.

-- 
J.B. Moreno
Re: Message-ID generated by newsserver
#61611
Author: Curt Welch
Date: Thu, 24 Oct 2002 04:12
100 lines
5787 bytes
kaih=8ZSqVC2Hw-B@khms.westfalen.de (Kai Henningsen) wrote:
> curt@kcwc.com (Curt Welch)  wrote on 23.10.02 in
> <20021022210009.657$CZ@newsreader.com>:
>
> > A transit server with a 6 hour retention should be able to work with a
> > 6 hour history database.
>
> *Nobody* should expect a 6 hour history to be reasonable. Or a 60 hour
> history, for that matter.
>
> One week is about the absolute minimum one can reasonably expect to get
> away with. Anything else is gross negligence.

:)

My feed servers run with a 16M article history which is about a week.  But
if we had accurate "post date" headers in articles, you could run a transit
box with a 1 hour history and still correctly transport something like 95%
of all usenet articles and 99.9% of all text articles. It's a shame that
because of the total lack of quality in the Date: header these options
aren't available to us.

> > But because Date: headers are so often wrong, you can't do what you
> > should be able to do
>
> No, you should not be able to do that.

Why shouldn't I be able to do that?

> > risk of having it dropped by servers.  I refuse to pass any articles
> > over 2 days old to any of my peers for example.
>
> And given that transit times over two days are still common on the less-
> connected parts of the net,

I'm not on that part of the net.  I've been using the 'net for over 10
years and I've never seen that part of the net.  Even back when I was
connected to the net over dial-up uucp everything moved in hours, not days.

If an article can't get to one of the main usenet servers in less than 2
days, it probably shouldn't have been posted.  The average age of articles
showing up for my server is less than 10 minutes old and most the small
articles are less than a minute old.

I can understand how someone may want to write an article off-line and for
one reason or another it doesn't get posted for days (like they wrote it
when they were on vacation and it didn't get posted until they got home).
And I do see the value in knowing when it was written (vs when it was
posted).

But when I've looked at the type of articles that have old dates on them,
you don't see a bunch of "valid" articles that were simply written days
ago.  You mostly see junk that shouldn't be on Usenet (spam, floods, and
general crap - the quality of the content normally matches the quality of
the Date: header).  I don't feel bad about making life "harder" for
articles with dates over 2 days old.

> that means you deliberately introduce holes.

I'm only one server.  I don't have the power to introduce holes.  I simply
don't waste my outgoing bandwidth on stuff that old.  I do keep those
articles and post them to my local server.  Most the time, if I've already
wasted my bandwidth to get an article, I don't like to throw it away.

> > And personally, I've never undstood the desire to know the posters
> > local time.  Most the time, when I look at dates, what I really want to
> > know is when they were posted relative to some other article, or
> > relative to _my_ local time.
>
> Whereas *I* want to know when they were *written* relative to other
> articles - the actual posting time is almost completely meaningless: it's
> no different from any time any intermediate machine received that
> article.

> We don't have Received: headers on news articles, because those times
> aren't considered worth the bytes.

Yeah, I think you live on a different part of Usenet than I do. :) You talk
as if most articles take hours to hop from server to server (like e-mail).
And by the time you see it, it might be days old.  I tend to see things in
minutes, not days.  My web based newsreader shows new articles the second
they show up on my server.  The only real delay comes from how often I care
to check for new articles.

Small text articles move though servers in milliseconds.  They can go all
the way around the world though a 20 hop path in a second or two.  And on
most the large servers, they do move that fast.  We have to move articles
that fast or else we could never keep up with the volume of a full feed.

> > And when I try to compare dates between two different articles,
> > the last thing I want to see is the posters local time.
>
> No, that is for when a poster sounds slightly incoherent,

You must be checking my dates all the time. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61610
Author: Russ Allbery
Date: Thu, 24 Oct 2002 05:16
25 lines
2159 bytes
Juergen Helbing <archiver@i3w.com> writes:

> The latest sickness on Usenet are multithread autoposters.
> If someone uses such a tool to post binaries on four connections
> simultanously then the overview about the multiparts is a PITA.

> I expect that this can be only fixed by creating defined Date stamps
> for all messages - so that an 'intended order' can be achieved.

Overview data isn't sorted by date.

> btw.: Threading is also based on Date stamps - and it is very helpful
> to know/see who answered first - and who did it later.... for the
> context of discussions.

This isn't necessarily true.  Some clients do it this way, some don't.
Overall, I think that sorting by arrival order (ie, article number in the
newsgroup) is more common, although that's just a gut instinct.

-- 
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: Message-ID generated by newsserver
#61613
Author: Vincent Lefevre
Date: Thu, 24 Oct 2002 09:19
40 lines
3214 bytes
In article <20021023132614.830$XE@newsreader.com>,
  Curt Welch <curt@kcwc.com> wrote:

> You post an article to news.software.nntp and get an error.

The problem is when you don't get an error (i.e. meaning that the
article has been rejected), just a timeout.

> You check the group to see if the message you just wrote is there.
> If not, you try again. That's all I'm talking about.

When the message-id has been generated by the client, there is nothing
wrong in trying even if the message is already on the server, as the
server will detect the duplicate.

When the message-id is generated by the server, this is a very bad
idea, as this may lead to duplicates. Indeed, the message may be on
the server, though it is not immediately visible. In general, the
message appears (for reading) after a few seconds, but when the server
is busy (which may be the cause of a timeout), it may take a few hours.
So, in this case, you would end up with duplicates.

>> If the message-id is created by the client, there is no problem with
>> duplicated articles, since the server can do the check.

> There is because some servers ignore the Message-ID you generate and put
> their own in it's place.  Because people have created servers like this, it
> breaks the ability to safely re-send articles that fail at that point of a
> post.

But then, if a user really wants to use such a server, this is his
problem to ensure that there won't be duplicates. But news clients
shouldn't be limited because of such broken servers.

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61616
Author: Jesper Harder
Date: Thu, 24 Oct 2002 14:27
28 lines
2488 bytes
Russ Allbery <rra@stanford.edu> writes:

> Jesper Harder <harder@myrealbox.com> writes:
>
>> |    The Date-header contains the date and time that the article was
>> |    prepared by the poster ready for transmission and SHOULD express
>> |    the poster's local time.
>
>> If I compose an article in my posting agent while I'm off-line, then
>> the Date supplied by the news server (injecting agent) won't reflect
>> the time when the article was prepared by me.
>
> It depends on how you define "prepared by the poster ready for
> transmission," 

Well, if it isn't intended to be interpreted as "When the user hits
Send", then I think that paragraph is poorly worded.

> but for practical reasons you want to let the server generate the
> Date, or generate the Date when actually posting, when reading and
> writing off-line.  Otherwise, if you defer the post more than a few
> days, the server may reject it for being too old.

True.  But if I forget about an article in the queue for that long, then
it's likely that someone else has answered the question or made the
point I wanted to make in the mean time -- so rejecting it could be a
good thing.  Otherwise, it's easy to resend it.
Re: Message-ID generated by newsserver
#61617
Author: Stefaan Claes
Date: Thu, 24 Oct 2002 14:34
15 lines
1614 bytes
In article <49347.na2203@archiver.winews.net>,
   Juergen Helbing <archiver@i3w.com> wrote:
[snip]
> btw.: Threading is also based on Date stamps - and it is very helpful
> to know/see who answered first - and who did it later.... for the
> context of discussions.
> So the _real_ creation date (not the posting date) _is_ important.

What about the Message-ID: and References: header lines?
If threading is based on those header lines, a wrong date won't
be a problem.

-- 
Stefaan Claes, Hove, Antwerpen, Belgium, Europe, <sclaes@aaug.net>
Re: Message-ID generated by newsserver
#61620
Author: Vincent Lefevre
Date: Thu, 24 Oct 2002 16:43
19 lines
2115 bytes
In article <4b8a7b529fsclaes@aaug.net>,
  Stefaan Claes <sclaes@aaug.net> wrote:

> What about the Message-ID: and References: header lines?
> If threading is based on those header lines, a wrong date won't
> be a problem.

Still annoying when you don't thread by References or when you sort
subthreads by date.

Moreover, if dates were correct, perhaps threading algorithms could
be based on a first sort by date to speed up things.

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: Message-ID generated by newsserver
#61624
Author: J.B. Moreno
Date: Thu, 24 Oct 2002 17:21
39 lines
2722 bytes
In article <4b8a7b529fsclaes@aaug.net>, 
 Stefaan Claes <sclaes@aaug.net> wrote:

>    Juergen Helbing <archiver@i3w.com> wrote:
> [snip]
> > btw.: Threading is also based on Date stamps - and it is very helpful
> > to know/see who answered first - and who did it later.... for the
> > context of discussions.
> > So the _real_ creation date (not the posting date) _is_ important.
> 
> What about the Message-ID: and References: header lines?
> If threading is based on those header lines, a wrong date won't
> be a problem.

Sure it will -- when three people all respond to the same article their
References headers will probably be the same, but you want to have a
consistent display; this can only be done by having preferred order for
those articles, and the sensible way of determining that order is to
sort by Date.

I.e. 

   Original -> A.Followup, 2am
            -> B.Followup, 3am  -> B1Followup, 4am
                                -> B2Followup, 10am
            -> C.Followup, 1pm

Assuming all articles are present and the same preferences, the display
should *always* look like that, not into


   Original -> C.Followup, 1pm
            -> A.Followup, 2am
            -> B.Followup, 3am  -> B1Followup, 4am
                                -> B2Followup, 10am

-- 
J.B. Moreno
Re: Message-ID generated by newsserver
#61642
Author: JanC
Date: Fri, 25 Oct 2002 18:17
14 lines
1609 bytes
curt@kcwc.com (Curt Welch) schreef:

[snip - pros & cons of date-written vs. date-posted]

Many news servers seem to add a "NNTP-Posting-Date:" header to indicate the 
posting date.  If every news server would do that, "Date:" could be used 
for date-written...

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Re: Message-ID generated by newsserver
#61643
Author: Curt Welch
Date: Fri, 25 Oct 2002 20:26
19 lines
1928 bytes
usenet@janc.cjb.net wrote:
> curt@kcwc.com (Curt Welch) schreef:
>
> [snip - pros & cons of date-written vs. date-posted]
>
> Many news servers seem to add a "NNTP-Posting-Date:" header to indicate
> the posting date.  If every news server would do that, "Date:" could be
> used for date-written...

Or at least add it whenever the Date: was not the Posting-Date: or
was not at least close to it (within minutes say).

I'll have to check that out and see just how many articles have that
these days.  I suspect not a lot, but maybe I'm wrong.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61644
Author: Eric A. Hall
Date: Fri, 25 Oct 2002 22:20
16 lines
1855 bytes
on 10/25/2002 3:26 PM Curt Welch wrote:

> Or at least add it whenever the Date: was not the Posting-Date: or
> was not at least close to it (within minutes say).

Wouldn't it be more appropriate to replace Date with a mildly accurate
value and use an X-Original-Date or the like? That would trigger filters
based on Date, instead of requiring if/then triggers for Date and
NNTP-Posting-Date.

-- 
Eric A. Hall                                        http://www.ehsco.com/
Internet Core Protocols          http://www.oreilly.com/catalog/coreprot/

Re: Message-ID generated by newsserver
#61662
Author: Andrew - Supernews
Date: Sun, 27 Oct 2002 07:11
17 lines
1764 bytes
In article <3db9c393$1@greywolf.labs.ntrg.com>, Eric A. Hall wrote:
> on 10/25/2002 3:26 PM Curt Welch wrote:
> 
>> Or at least add it whenever the Date: was not the Posting-Date: or
>> was not at least close to it (within minutes say).
> 
> Wouldn't it be more appropriate to replace Date with a mildly accurate
> value and use an X-Original-Date or the like? That would trigger filters
> based on Date, instead of requiring if/then triggers for Date and
> NNTP-Posting-Date.

absolutely the wrong idea - replacing the Date header causes loops.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Message-ID generated by newsserver
#61663
Author: Bas Ruiter
Date: Sun, 27 Oct 2002 08:31
20 lines
1706 bytes
I always assumed the Date: to reflect the age of the article,
never the content.

The same content may be reposted again later.

If anyone wanted to share what time the content was written
he/she would/should do so by adding a date in the content.



 Bas Ruiter

-- 

[ l o r d s n o w @home.nl    http://members.home.nl/ l o r d s n o w ]

 Only when the population of 50 mysteriously dropped to 7 did the
 remainder start to suspect Hungry.
Re: Message-ID generated by newsserver
#61670
Author: Curt Welch
Date: Sun, 27 Oct 2002 17:57
35 lines
3012 bytes
ehall@ehsco.com wrote:
> on 10/25/2002 3:26 PM Curt Welch wrote:
>
> > Or at least add it whenever the Date: was not the Posting-Date: or
> > was not at least close to it (within minutes say).
>
> Wouldn't it be more appropriate to replace Date with a mildly accurate
> value and use an X-Original-Date or the like? That would trigger filters
> based on Date, instead of requiring if/then triggers for Date and
> NNTP-Posting-Date.

The problem is that you can't tell if the date is an accurate post date
because people want to use it as the date the article was written and not
the date they posted it.  And when composing off-line, the difference could
be hours or even days between when you wrote it and when you posted it.

The idea of adding NNTP-Posting-Date: is just a way ot documenting more
accurately when it was posted vs what when it was written or how the less
accurate clock on the users PC happened to be set.

But intstead of geting ever system to support the addition of
NNTP-Posting-Date:, and instead of having to add two dates to every post,
you could just add the NNTP-Posting-Date: when the Date: was not a good
representation of Posting-Date:.  Anyone wanting to know the posting date
would choose the NNTP-Posting-Date: header first, but for articles where
that was missing, use simply the Date:.

This reuires logic to separte the two, but anything like a filter to act on
a date would simply be programed to use one or the other where (posting
date is defined as the NNTP header else the Date: header).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61671
Author: Curt Welch
Date: Sun, 27 Oct 2002 18:04
20 lines
2204 bytes
Bas Ruiter <lordsnow@home.nl> wrote:
> I always assumed the Date: to reflect the age of the article,
> never the content.

That's just the problem.  Most users (who don't think about the mechanics
of posting and distribution) tend to think about it as date written.  This
naturally follows from the older convetion of putting a date on a letter
which is always the date written, not the date you dropped it in a post
office mail box.

I think that using Date: as date posted is overall a better choice for
Usenet (not e-mail) for technical reasons, but many users who never thought
of Date: that way seem to think I'm crazy.  This is just one more of those
fine-points that shows e-mail and Usenet are not the same and should never
be confused.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61673
Author: Stig Sandbeck Mathisen
Date: Sun, 27 Oct 2002 21:26
20 lines
2041 bytes
kaih=8ZSqVC2Hw-B@khms.westfalen.de (Kai Henningsen) writes:

> *Nobody* should expect a 6 hour history to be reasonable. Or a 60
> hour history, for that matter.
> 
> One week is about the absolute minimum one can reasonably expect to
> get away with. Anything else is gross negligence.

The article history retention should be at least as long as the
maximum age of the articles you are prepared to accept and forward.

Even if you allow only two-day-old articles, a week of minimum history
retention is expected, and should be sufficient to make sure you do
not permit your peers to transmit articles you have already seen,
forwarded and forgotten.

-- 
 SSM - Stig Sandbeck Mathisen
  Trust the Computer, the Computer is your Friend
Re: Message-ID generated by newsserver
#61691
Author: Faye Pearson
Date: Mon, 28 Oct 2002 16:26
28 lines
1997 bytes
On 23 Oct 2002 01:00:09 GMT, Curt Welch <curt@kcwc.com> wrote:
>> If I compose an article in my posting agent while I'm off-line and I
>> don't include the Date-header in the proto article, then the Date
>> supplied by the news server (injecting agent) won't reflect the time
>> when the article was prepared by me.
> 
> The Date: header plays a dual role on Usenet which causes these problems.
> 
> Users want to use the Date: as the time they either wrote the message or
> logicaly "sent" it.  And when they compose the message off-line, that date,
> as you point out, can be very different from the time it is actually sent
> to the first Usenet server.

I thought this is why we have the NNTP-Posting-Date: header?

It's not an X- header so it must be pretty standard right? (ha!)

That way Date: is for users and NNTP-Posting-Date: is for servers
and there is no conflict of interest.


Faye

-- 
Faye Pearson,
Covert Development
ClaraNET Ltd.
Re: Message-ID generated by newsserver
#61692
Author: Curt Welch
Date: Mon, 28 Oct 2002 17:03
39 lines
2944 bytes
Faye Pearson <faye@clara.net> wrote:
> I thought this is why we have the NNTP-Posting-Date: header?
>
> It's not an X- header so it must be pretty standard right? (ha!)

Yeah, it no doubt is why the header was created.  I've never seen
a discussion about the header and I've never seen any type of
standard for it so I just assumed it was something someone decided
to throw in at some point.  I assume it showed up at the same time
NNTP-Posting-Host: showed up but I don't know who did it, or what
software supports it or what the history is.

Doing a little checking of articles in this group, I see it's used a more
aritcles than I would have suspected - looks like around 25%.

But I also see a lot of stuff that makes me think the date tends
to be in "local" format to make it easy for support people to figure
out when it was posted in "their" time instead of a good network-wide
date format that correctly documents timezones (+HHMM format). Stuff
like this:

NNTP-Posting-Date: Sat, 19 Oct 2002 20:15:01 MET DST

and

NNTP-Posting-Date: 14 Oct 2002 17:00:14 CDT

So I suspect because no software is checking the header to make sure it's
in a good network-wide date standard that it's not in practice going to
work all that much better than the Date: header in getting a good timestamp
for when the article was posted.  But smart software no doubt could use
that and the Date: header together to get a more accurate estimate of the
posting date.  It would be interesting to do a study to see how different
the Date: and Posting-Date: header time values turn out to be.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Message-ID generated by newsserver
#61693
Author: Russ Allbery
Date: Mon, 28 Oct 2002 17:48
42 lines
2878 bytes
Curt Welch <curt@kcwc.com> writes:

> Yeah, it no doubt is why the header was created.  I've never seen a
> discussion about the header and I've never seen any type of standard for
> it so I just assumed it was something someone decided to throw in at
> some point.

Yup.

> I assume it showed up at the same time NNTP-Posting-Host: showed up but
> I don't know who did it, or what software supports it or what the
> history is.

No, much later.  It's pretty much INN's fault.  I'm not a big fan of it.

> But I also see a lot of stuff that makes me think the date tends to be
> in "local" format to make it easy for support people to figure out when
> it was posted in "their" time instead of a good network-wide date format
> that correctly documents timezones (+HHMM format). Stuff like this:

> NNTP-Posting-Date: Sat, 19 Oct 2002 20:15:01 MET DST

That's definitely invalid.

> NNTP-Posting-Date: 14 Oct 2002 17:00:14 CDT

That's a valid RFC 2822 date; any Usenet server should be able to parse
it.  It's certainly not an ideal date format, and the timezone form should
be used instead (RFC 2822 declares this format to be obsolete), but it's
been valid for a long time.

Likely the reason why you see the former is because people generate the
latter and people outside of the US reasonably assume that if the US folks
can use time zone names, the rest of the world should be able to too.
*sigh*  Everyone needs to switch to numeric offsets.

-- 
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: Message-ID generated by newsserver
#61694
Author: Faye Pearson
Date: Mon, 28 Oct 2002 17:56
30 lines
2143 bytes
On 28 Oct 2002 17:03:10 GMT, Curt Welch <curt@kcwc.com> wrote:
> Faye Pearson <faye@clara.net> wrote:
>> I thought this is why we have the NNTP-Posting-Date: header?
>>
>> It's not an X- header so it must be pretty standard right? (ha!)
> 
> Yeah, it no doubt is why the header was created.  I've never seen
> a discussion about the header and I've never seen any type of
> standard for it so I just assumed it was something someone decided
> to throw in at some point.  I assume it showed up at the same time
> NNTP-Posting-Host: showed up but I don't know who did it, or what
> software supports it or what the history is.

It could be a Typhoon (and probably other ex-highwind nnrpds) thing.
We kept it in for our newsproxy software when we wrote it because it
seemed like a Good Thing :)


Faye

(ps, sorry about the mailed version, I typoed an r)

-- 
Faye Pearson,
Covert Development
ClaraNET Ltd.       Tel 020 7903 3000

Why be a man when you can be a success?
		-- Bertolt Brecht
Re: Message-ID generated by newsserver
#61695
Author: Faye Pearson
Date: Mon, 28 Oct 2002 18:05
19 lines
1739 bytes
On Mon, 28 Oct 2002 09:48:42 -0800, Russ Allbery <rra@stanford.edu> wrote:
> Likely the reason why you see the former is because people generate the
> latter and people outside of the US reasonably assume that if the US folks
> can use time zone names, the rest of the world should be able to too.
> *sigh*  Everyone needs to switch to numeric offsets.

After all, it's not too difficult to use %z instead of %Z in strftime ;)


Faye

-- 
Faye Pearson,
Covert Development
ClaraNET Ltd.       Tel 020 7903 3000

One can never consent to creep when one feels an impulse to soar.
		-- Helen Keller
Re: Message-ID generated by newsserver
#61696
Author: Russ Allbery
Date: Mon, 28 Oct 2002 19:06
23 lines
2223 bytes
Faye Pearson <faye@clara.net> writes:
> On Mon, 28 Oct 2002 09:48:42 -0800, Russ Allbery <rra@stanford.edu>
> wrote:

>> Likely the reason why you see the former is because people generate the
>> latter and people outside of the US reasonably assume that if the US
>> folks can use time zone names, the rest of the world should be able to
>> too.  *sigh* Everyone needs to switch to numeric offsets.

> After all, it's not too difficult to use %z instead of %Z in strftime ;)

It is, actually.  %z is a Linuxism.

Incidentally, you don't want to use strftime to generate times for Usenet,
because strftime is locale-sensitive for the month name.  You can end up
generating translated month names, which aren't valid RFC 2822 dates.

-- 
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: Message-ID generated by newsserver
#61697
Author: Andrew - Supernews
Date: Mon, 28 Oct 2002 19:47
21 lines
2107 bytes
In article <slrnarqv3s.iuo.faye@dude.noc.clara.net>, Faye Pearson wrote:
> On Mon, 28 Oct 2002 09:48:42 -0800, Russ Allbery <rra@stanford.edu> wrote:
>> Likely the reason why you see the former is because people generate the
>> latter and people outside of the US reasonably assume that if the US folks
>> can use time zone names, the rest of the world should be able to too.
>> *sigh*  Everyone needs to switch to numeric offsets.
> 
> After all, it's not too difficult to use %z instead of %Z in strftime ;)

I think you'll find that strftime() support for numeric offsets is very
recent, and probably still not yet portable (it was not in either SUSv2
or C89).

For servers, it's usually better to use UTC and specify -0000 as the
offset (-0000 means "UTC time, original timezone unknown" whereas +0000
means "original timezone is on UTC").

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Page 1 of 2 • 56 total messages
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