🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
19 messages
19 total messages Started by Joshua Fri, 21 Dec 2001 19:26
How the Server handle cross-posting
#55702
Author: Joshua
Date: Fri, 21 Dec 2001 19:26
10 lines
1246 bytes
If the server stores the cross-postings to be individual posts with unique
message-ID,what makes the client treats them as the same articles?

And,if some articles expired or canceled by the server,what makes the client
to disappear them?

Any answer will be appreciated.


Re: How the Server handle cross-posting
#55704
Author: Greg Andrews
Date: Fri, 21 Dec 2001 20:30
34 lines
2129 bytes
"Joshua" <joshua2002@hotmail.com> writes:
>
>If the server stores the cross-postings to be individual posts with unique
>message-ID,what makes the client treats them as the same articles?
>

Simple.  "The server doesn't do that."

Servers do not store cross-posted articles as inidividual posts
with different message-ids.  Servers store them as one post with
one message-id, that is visible from multiple groups.

Whether the client thinks they are individual articles or the same
article depends on the way the client was programmed.

>
>And,if some articles expired or canceled by the server,what makes the
>client to disappear them?
>

When the client asks to see the article, the server responds with
an error indicating the article doesn't exist.

Clients don't usually download articles and keep copies of them.
The ones that do are acting as servers with their own expire policy.
The documentation for such a client should describe how it decides
to expire the downloaded copies of the articles.

  -Greg
-- 
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
		 -- Steven Wright
Re: How the Server handle cross-posting
#55705
Author: Joshua
Date: Fri, 21 Dec 2001 22:39
44 lines
3009 bytes
"Greg Andrews":a0064b$5jm$4@news.panix.com...
"Joshua" <joshua2002@hotmail.com> writes:

>If the server stores the cross-postings to be individual posts with unique
>message-ID,what makes the client treats them as the same articles?

Simple.  "The server doesn't do that."
Servers do not store cross-posted articles as inidividual posts
with different message-ids.  Servers store them as one post with
one message-id, that is visible from multiple groups.

Whether the client thinks they are individual articles or the same
article depends on the way the client was programmed.
--------------------------------------------------------------
Thank you,Greg.But

I have tried to store the corssing-posting as the same article--same
header,same body and everything as well as the same message-ID,in fact only
one single file. However, after I download them back using Outlook Express,
it doesn't treats them as the same article. By testing this, we usually
download all of them in their own group,make one as read,the others shoud be
signed as read,too.What happens here?

>And,if some articles expired or canceled by the server,what makes the
>client to disappear them?

When the client asks to see the article, the server responds with
an error indicating the article doesn't exist.

Clients don't usually download articles and keep copies of them.
The ones that do are acting as servers with their own expire policy.
The documentation for such a client should describe how it decides
to expire the downloaded copies of the articles.
-----------------------------------------------------------
We all know that Outlook Express and Forte Agent support Off-line News
reading. How can I make them delete the old,downloaded articles after I
delete/expire them from the server side?

Thank you very much!



Re: How the Server handle cross-posting
#55706
Author: Greg Andrews
Date: Sat, 22 Dec 2001 00:26
51 lines
3288 bytes
"Joshua" <joshua2002@hotmail.com> writes:
>"Greg Andrews":a0064b$5jm$4@news.panix.com...
>>
>>Servers do not store cross-posted articles as inidividual posts
>>with different message-ids.  Servers store them as one post with
>>one message-id, that is visible from multiple groups.
>>
>>Whether the client thinks they are individual articles or the same
>>article depends on the way the client was programmed.
>--------------------------------------------------------------
>Thank you,Greg.But
>
>I have tried to store the corssing-posting as the same article--same
>header,same body and everything as well as the same message-ID,in fact only
>one single file. However, after I download them back using Outlook Express,
>it doesn't treats them as the same article. By testing this, we usually
>download all of them in their own group,make one as read,the others shoud be
>signed as read,too.What happens here?
>

This sounds like a bug in Outlook Express.  Remember, I said "whether
the client thinks they are the individual articles or the same article
depends on the way the client was programmed."

>>
>>Clients don't usually download articles and keep copies of them.
>>The ones that do are acting as servers with their own expire policy.
>>The documentation for such a client should describe how it decides
>>to expire the downloaded copies of the articles.
>-----------------------------------------------------------
>We all know that Outlook Express and Forte Agent support Off-line News
>reading. How can I make them delete the old,downloaded articles after I
>delete/expire them from the server side?
>

Are you asking how the server can make the client delete the old
articles?  Or how you, the person who uses Outlook Express make it
delete the old articles?

The answer to both questions must be found in the Outlook Express
documentation, as I said in my previous article.  There is no
standard that describes how a server would tell a client to expire
a cached article.  Only the Outlook Express documents can tell you
how to make it behave the way you want it to behave.

  -Greg
-- 
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
		 -- Steven Wright
Re: How the Server handle cross-posting
#55707
Author: Joshua
Date: Sat, 22 Dec 2001 01:18
31 lines
2508 bytes
Well,I am programming a News Server,and I wonder if the server can do
anything about it? In what situation,the client software will be made for
deciding to check the old,downloaded articles and make them un-visual?

Yes,Outlook Express and Forte Agent's documents will tell some valuable
help,but they must be only for How To Do,while I need to know How They
Function.Any help will be appreciated.

Anyway,thank your reply,dear Greg.


"Greg Andrews" <gerg@panix.com> д����Ϣ����:a00jvb$a56$2@news.panix.com...
> "Joshua" <joshua2002@hotmail.com> writes:
> >"Greg Andrews":a0064b$5jm$4@news.panix.com...

> This sounds like a bug in Outlook Express.  Remember, I said "whether
> the client thinks they are the individual articles or the same article
> depends on the way the client was programmed."
>
> Are you asking how the server can make the client delete the old
> articles?  Or how you, the person who uses Outlook Express make it
> delete the old articles?
>
> The answer to both questions must be found in the Outlook Express
> documentation, as I said in my previous article.  There is no
> standard that describes how a server would tell a client to expire
> a cached article.  Only the Outlook Express documents can tell you
> how to make it behave the way you want it to behave.


Re: How the Server handle cross-posting
#55708
Author: Curt Welch
Date: Sat, 22 Dec 2001 02:36
55 lines
3585 bytes
"Joshua" <joshua2002@hotmail.com> wrote:
> Well,I am programming a News Server,and I wonder if the server can do
> anything about it?

I'm lost as to what you are asking.  The server needs to do what the
server does and you should ignore the client.  Just implement the
protocol.

When you get a new article, the server assigns the next higest unused
article to it for each group it wants to post the article to.  It
puts this information into the Xref: header for the client to read.

The client finds out about new articles using the group command.  It
sees a high artile number so it knows there are new articles. It uses
commands like xover, or head, or article, or body to find out  information
about the article.

The group command also returns a low article count.  That is what the
newsreader client will use to know that all articles in that group, below
the low water mark have expired.  But articles can expire (or be cancled)
from the middle of the range from low to high in a group as well.

When that happens, xover whould stop returning information about the
artile.  The head, body, article, and stat commands will return an
error code if you try to read that article.  The listgroup command
will no longer return the article number for that group.

A newsreader might use any of that information to learn that the article
has been expired. Or it might not care.  Some newsreader seem to be
real stupid about such things and will continue to show you header
information even thought the article has long since expired.

> In what situation,the client software will be made for
> deciding to check the old,downloaded articles and make them un-visual?

That totaly depends on the client.

> Yes,Outlook Express and Forte Agent's documents will tell some valuable
> help,but they must be only for How To Do,while I need to know How They
> Function.

Write a server.  Add debug commands to show you what they are doing. Figure
it out for yourself.

If you read the NNTP RFCs, it should be fairly obvious what the server has
to do.  If it's not obvious, then you probably shouldn't be trying to write
a server.

You would probably get further if you tried to write a client first.  Even
something very simple just to get an idea of what you are dealing with.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: How the Server handle cross-posting
#55710
Author: J.B. Moreno
Date: Sat, 22 Dec 2001 04:54
22 lines
2133 bytes
In article <a00n05$rs$1@mail.cn99.com>,
 Joshua <joshua2002@hotmail.com> wrote:

-snip client has to detect cross-posting and expired articles-
> Well,I am programming a News Server,and I wonder if the server can do
> anything about it? In what situation,the client software will be made for
> deciding to check the old,downloaded articles and make them un-visual?

No, there's nothing you can do to force the client to do either -- you
should support it doing so (using X-Ref for crossposted articles and
returning up to date info in response to a GROUP command).

As for when the client decides to "hide" expired articles; that's
entirely up to the client (and in fact in most programs it's not an
issue at all, online newsreaders uses a newsrc to keep track of what
has been /read/ but don't care about expired [they generally neither
see or show them in the first place], while offline newsreaders
retrieve the articles and then do their own version of expiration).

-- 
J.B Moreno
Re: How the Server handle cross-posting
#55712
Author: Joshua
Date: Sat, 22 Dec 2001 06:33
48 lines
3237 bytes
From RFC-1036:
-----------------
2.2.13.  Xref

    This line contains the name of the host (with domains omitted) and a
    white space separated list of colon-separated pairs of newsgroup
    names and message numbers.  These are the newsgroups listed in the
    "Newsgroups" line and the corresponding message numbers from the
    spool directory.

    This is only of value to the local system, so it should not be
    transmitted.  For example, in:

               Path: seismo!lll-crg!lll-lcc!pyramid!decwrl!reid
               From: reid@decwrl.DEC.COM (Brian Reid)
               Newsgroups: news.lists,news.groups
               Subject: USENET READERSHIP SUMMARY REPORT FOR SEP 86
               Message-ID: <5658@decwrl.DEC.COM>
               Date: 1 Oct 86 11:26:15 GMT
               Organization: DEC Western Research Laboratory
               Lines: 441
               Approved: reid@decwrl.UUCP
               Xref: seismo news.lists:461 news.groups:6378
---------------------------------------------------------
I think that if a article which contains this "Xref:" must be the same
crossing posting as these two articles following Xref: field:
news.lists:461 news.groups:6378
but what we will write there instead of "seismo" ?Just our local news host
name?


"J.B. Moreno" <planb@newsreaders.com>
:211220012354006805%planb@newsreaders.com...
> In article <a00n05$rs$1@mail.cn99.com>,
>  Joshua <joshua2002@hotmail.com> wrote:
>
> -snip client has to detect cross-posting and expired articles-
> > Well,I am programming a News Server,and I wonder if the server can do
> > anything about it? In what situation,the client software will be made
for
> > deciding to check the old,downloaded articles and make them un-visual?
>
> No, there's nothing you can do to force the client to do either -- you
> should support it doing so (using X-Ref for crossposted articles and
> returning up to date info in response to a GROUP command).


Re: How the Server handle cross-posting
#55713
Author: Joshua
Date: Sat, 22 Dec 2001 07:23
31 lines
2580 bytes
I will implement Xref field. Is there any possibility that the client
structures a ready-made Xref field when post or reply articles? Or,we just
assume the incoming articles never have such of this field in their header?
How about which sucked from other servers? RFC says "This is only of value
to the local system, so it should not be transmitted",does it mean my
supposition is right?


"Joshua" <joshuaIIII@hotmail.com> д����Ϣ����:a019en$l1e$1@mail.cn99.com...
> From RFC-1036:
> -----------------
> 2.2.13.  Xref


> "J.B. Moreno" <planb@newsreaders.com>
> :211220012354006805%planb@newsreaders.com...
> > In article <a00n05$rs$1@mail.cn99.com>,
> >  Joshua <joshua2002@hotmail.com> wrote:
> >
> > -snip client has to detect cross-posting and expired articles-
> > > Well,I am programming a News Server,and I wonder if the server can do
> > > anything about it? In what situation,the client software will be made
> for
> > > deciding to check the old,downloaded articles and make them un-visual?
> >
> > No, there's nothing you can do to force the client to do either -- you
> > should support it doing so (using X-Ref for crossposted articles and
> > returning up to date info in response to a GROUP command).


Re: How the Server handle cross-posting
#55714
Author: Curt Welch
Date: Sat, 22 Dec 2001 16:39
15 lines
1768 bytes
"Joshua" <joshuaIIII@hotmail.com> wrote:

> I think that if a article which contains this "Xref:" must be the same
> crossing posting as these two articles following Xref: field:
> news.lists:461 news.groups:6378
> but what we will write there instead of "seismo" ?Just our local news
> host name?

Yes.  It's mostly ignored these days.  But you typically want the put
the same thing there that you put in the Path:.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: How the Server handle cross-posting
#55715
Author: Curt Welch
Date: Sat, 22 Dec 2001 16:47
21 lines
2279 bytes
"Joshua" <joshuaIIII@hotmail.com> wrote:
> I will implement Xref field. Is there any possibility that the client
> structures a ready-made Xref field when post or reply articles? Or,we
> just assume the incoming articles never have such of this field in their
> header? How about which sucked from other servers? RFC says "This is only
> of value to the local system, so it should not be transmitted",does it
> mean my supposition is right?

Most servers I believe do transmit it.  i.e., they just don't bother
to take it off.  And just a week or so ago there was a problem where
one server was creating bogus Xref: fields with a null after the : which
confused other servers into adding an extra Xref: field, so articles
were showing up with 2 or 3 xref fields on them.

You can never assume anything about the articles you receive.  Your
code must check everything.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: How the Server handle cross-posting
#55740
Author: Joshua
Date: Tue, 25 Dec 2001 07:10
24 lines
2177 bytes
> >And,if some articles expired or canceled by the server,what makes the
> >client to disappear them?
> >
>
> When the client asks to see the article, the server responds with
> an error indicating the article doesn't exist.
>
> Clients don't usually download articles and keep copies of them.
> The ones that do are acting as servers with their own expire policy.
> The documentation for such a client should describe how it decides
> to expire the downloaded copies of the articles.

Greg,Forte Agent and MS-Outlook Express support off-line reading.This
way,they always download and keep copies of articles. After the expire or
some old articles have been deleted from the server side,is there any
possible to make Agent or Outlook Express remove there articles that
downloaded before,but deleted by server recently?

I have noticed that sometime,Outlook Express will remove some old,downloaded
articles by itself after something issues on the server,but I don't catch
the real core relation of these actions.


Re: How the Server handle cross-posting
#55739
Author: Joshua
Date: Tue, 25 Dec 2001 07:25
18 lines
2001 bytes
Do I have to implement "Path: " header either? By reading RFC, I don't find
the real use of this path for a locally server...

"Curt Welch" <curt@kcwc.com> wrote in message
news:20011222113927.861$KB@newsreader.com...
> "Joshua" <joshuaIIII@hotmail.com> wrote:
>
> > I think that if a article which contains this "Xref:" must be the same
> > crossing posting as these two articles following Xref: field:
> > news.lists:461 news.groups:6378
> > but what we will write there instead of "seismo" ?Just our local news
> > host name?
>
> Yes.  It's mostly ignored these days.  But you typically want the put
> the same thing there that you put in the Path:.


Re: How the Server handle cross-posting
#55743
Author: Joshua
Date: Tue, 25 Dec 2001 07:39
52 lines
3313 bytes
Dear Sir,

You are very right. The server needs only do what it does. But I want it
deos better. This the reason why I will implement it by myself. Maybe you
think that I shouldn't be trying to do, but I HAVE TO.

RFC can tell most,but not all. I need to know the action detail of few
famous clients such as OE and Agent,not only RFC itself. My server has to
face to the clients finally,not only RFC standards. Maybe some feature will
be very hard to implement now, but if it is required, I will try.

I think there must be something can be done on expiring the downloaded
article on the client site,coz I know OE will delete some old articles by
itself after I change something at the server side,but I don't still catch
the reason. I think there must be someone here can help me.I will thank him
whatever he is.


"Curt Welch" <curt@kcwc.com> wrote in message
news:20011221213617.979$8M@newsreader.com...
> "Joshua" <joshua2002@hotmail.com> wrote:
> > Well,I am programming a News Server,and I wonder if the server can do
> > anything about it?
>
> I'm lost as to what you are asking.  The server needs to do what the
> server does and you should ignore the client.  Just implement the
> protocol.


> > In what situation,the client software will be made for
> > deciding to check the old,downloaded articles and make them un-visual?
>
> That totaly depends on the client.
>
> > Yes,Outlook Express and Forte Agent's documents will tell some valuable
> > help,but they must be only for How To Do,while I need to know How They
> > Function.
>
> Write a server.  Add debug commands to show you what they are doing.
Figure
> it out for yourself.
>
> If you read the NNTP RFCs, it should be fairly obvious what the server has
> to do.  If it's not obvious, then you probably shouldn't be trying to
write
> a server.
>
> You would probably get further if you tried to write a client first.  Even
> something very simple just to get an idea of what you are dealing with.


Re: How the Server handle cross-posting
#55742
Author: Joshua
Date: Tue, 25 Dec 2001 07:49
29 lines
2380 bytes
Yes,what I want to know is the way of the famous clients.

"J.B. Moreno" <planb@newsreaders.com> wrote in message
news:211220012354006805%planb@newsreaders.com...
> In article <a00n05$rs$1@mail.cn99.com>,
>  Joshua <joshua2002@hotmail.com> wrote:
>
> -snip client has to detect cross-posting and expired articles-
> > Well,I am programming a News Server,and I wonder if the server can do
> > anything about it? In what situation,the client software will be made
for
> > deciding to check the old,downloaded articles and make them un-visual?
>
> No, there's nothing you can do to force the client to do either -- you
> should support it doing so (using X-Ref for crossposted articles and
> returning up to date info in response to a GROUP command).
>
> As for when the client decides to "hide" expired articles; that's
> entirely up to the client (and in fact in most programs it's not an
> issue at all, online newsreaders uses a newsrc to keep track of what
> has been /read/ but don't care about expired [they generally neither
> see or show them in the first place], while offline newsreaders
> retrieve the articles and then do their own version of expiration).
>
> --
> J.B Moreno


Re: How the Server handle cross-posting
#55744
Author: Joshua
Date: Tue, 25 Dec 2001 08:05
14 lines
1560 bytes
... ...

> the reason. I think there must be someone here can help me.I will thank
him
> whatever he is.

I am very sorry about my tounge slip.The above shout be:

I think there must be someone here can help me.I will thank him *WHOEVER* he
is.



Re: How the Server handle cross-posting
#55745
Author: Curt Welch
Date: Tue, 25 Dec 2001 17:29
25 lines
2404 bytes
"Joshua" <JoshuaIIII@hotmail.com> wrote:
> Do I have to implement "Path: " header either? By reading RFC, I don't
> find the real use of this path for a locally server...

If your sever doesn't pass articles to another server, then nothing
will really break if you don't deal with the Path, but you should
none the less.  It documents where the article has been.

> "Curt Welch" <curt@kcwc.com> wrote in message
> news:20011222113927.861$KB@newsreader.com...
> > "Joshua" <joshuaIIII@hotmail.com> wrote:
> >
> > > I think that if a article which contains this "Xref:" must be the
> > > same crossing posting as these two articles following Xref: field:
> > > news.lists:461 news.groups:6378
> > > but what we will write there instead of "seismo" ?Just our local news
> > > host name?
> >
> > Yes.  It's mostly ignored these days.  But you typically want the put
> > the same thing there that you put in the Path:.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: How the Server handle cross-posting
#55746
Author: J.B. Moreno
Date: Tue, 25 Dec 2001 19:38
52 lines
3529 bytes
In article <a09akr$7np$3@mail.cn99.com>, 
 Joshua <JoshuaIIII@hotmail.com> wrote:

> Dear Sir,
> 
> You are very right. The server needs only do what it does. But I want it
> deos better. This the reason why I will implement it by myself. Maybe you
> think that I shouldn't be trying to do, but I HAVE TO.

He possibly thinks you should do something else first (write a client),
but he's not saying that you shouldn't be writing a server at all.

Curt has himself written both, his advice is excellent.

> RFC can tell most,but not all. I need to know the action detail of
> few famous clients such as OE and Agent,not only RFC itself. My
> server has to face to the clients finally,not only RFC standards.
> Maybe some feature will be very hard to implement now, but if it is
> required, I will try.

Right, there are more than a couple of things not covered by the RFC's,
and this is a good place to ask (as would is news.software.readers, but
lots of people read both groups, and this particular question is better
asked here).

> I think there must be something can be done on expiring the
> downloaded article on the client site,coz I know OE will delete some
> old articles by itself after I change something at the server
> side,but I don't still catch the reason. I think there must be
> someone here can help me.I will thank him whatever he is.

The answers you have been given are correct -- the server SERVES.  I.e.
it returns information that the client has asked for.  THAT is what you
need to do.  The server NEVER sends unsolicited information to the
client.

Let me repeat that again: the server NEVER sends information to the
client without the client first having requested that information.

Now, how to explain the actions of OE and Agent?  Quite simple: they
requested information from the server (probably by issuing either GROUP
or LISTGROUP commands, although XOVER is a possibility).

So, you as a server writer, need to be prepared to respond to these
(and many other) commands -- but you don't need to worry about
INITIATING anything.  At best the server sending unsolicited
information will result in the client ignoring the information, at
worst it will cause bad things to happen on the users computer.

-- 
J.B Moreno
Re: How the Server handle cross-posting
#55747
Author: J.B. Moreno
Date: Tue, 25 Dec 2001 19:53
30 lines
2511 bytes
In article <a09akt$7np$5@mail.cn99.com>, 
 Joshua <JoshuaIIII@hotmail.com> wrote:

(Please don't top post, it makes things harder for me to read and
understand).

> "J.B. Moreno" <planb@newsreaders.com> wrote in message

-snip client has to detect cross-posting and expired articles-
-snip how does server know when this has been done/make it happen-

> > As for when the client decides to "hide" expired articles; that's
> > entirely up to the client (and in fact in most programs it's not an
> > issue at all, online newsreaders uses a newsrc to keep track of what
> > has been /read/ but don't care about expired [they generally neither
> > see or show them in the first place], while offline newsreaders
> > retrieve the articles and then do their own version of expiration).
>
> Yes,what I want to know is the way of the famous clients.

One of us is not understanding the other -- SERVERS do *NOT* tell
clients when to "hide" articles, they do not care when the client hides
the articles, all they are concerned with is responding to the commands
the client issues.  Why the client is issuing a command is of no
concern to the server -- its job is to respond appropriately to the
command, not attempt to determine what the client is doing.

-- 
J.B Moreno
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