🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50683

Re: message-id when posting

#50683
From: J.B. Moreno
Date: Sat, 17 Feb 2001 21:06
55 lines
3503 bytes
In article <96m74a$m0dvd$1@ID-25595.news.dfncis.de>,
 Armin Zingler <armin.zingler@freenet.de> wrote:

> "Prefilled Meowbot" <meowbot@meowing.net> schrieb
> 
> > Jan Krumsiek <Jan.Krumsiek.Nospam@gmx.de> wrote:
> >
> > > i'm writing a newsreader and i got a question about message-ids:
> > > when generating the header for the message to be posted, do i
> > > have to include a self-generated message id??
> >
> > No.  The only headers you have to generate on your own are From,
> > Subject and Newsgroups.  POST will supply reasonable defaults for
> > the rest.
> 
> I'm one of those newsreader-writers, too.
>
> If I do supply an ID on my own for server A, use the same ID for
> another message for server B and post them to the same newsgroup but
> to different servers: What happens when those two servers (mirrors)
> try to synchronize? They both have got a message with the same ID.
> 
> How unique does the message ID have to be? Unique for a newsgroup, for
> a server or unique at all?

A Message-ID is just that -- a permanent identification of a message. 
It is supposed to be unique to that message, across groups and servers.
That uniqueness should last basically forever (i.e. don't use the same
id for different messages at different times).

Posting the message to different servers, should only be done after
some care -- you should indeed supply the message-id in that case, but
some rare servers don't support client supplied id's, if you're going
to do that as a regular matter, I'd suggest testing to make sure that
isn't going to be a problem.  If it's not (and it won't be in most
cases) then as long as the article is the same, then posting it with
the same message-id is not only allowed, but required.

(BTW, a test for the message id would be fairly simple, post a test
message, find the message, check the message-id, it really shouldn't be
that hard to do this automatically without user input in most cases. 
Some servers will return the message-id as part of the 240 response
code, that's the easiest case to check for, but even if the server
doesn't do this [and like I said, not all do], posting a test article
and checking it shouldn't be that hard).

As for you question regarding synchronization, because of the nature of
usenet, that happens all the time -- it's part of the design, if both
servers have the article then they say they don't want another copy, if
one has it and the other doesn't then it'll accept it and then they'll
both have it.

-- 
J.B. Moreno
Technical Details
Message-ID: <170220011606348728%planb@newsreaders.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!news2.newsreader.com!news3.newsreader.com!planb
References: <MPG.14f5ed814576a1f0989688@news.btx.dtag.de> <87bss4ozkq.fsf@litterbox.meowing.net> <96m74a$m0dvd$1@ID-25595.news.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <170220011606348728%planb@newsreaders.com>
Subject: Re: message-id when posting
Date: Sat, 17 Feb 2001 16:06:34 -0500
From: "J.B. Moreno" <planb@newsreaders.com>
References: <MPG.14f5ed814576a1f0989688@news.btx.dtag.de> <87bss4ozkq.fsf@litterbox.meowing.net> <96m74a$m0dvd$1@ID-25595.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!news2.newsreader.com!news3.newsreader.com!planb
Newsgroups: news.software.nntp
Organization: bofh wannabe
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
User-Agent: Thoth/1.0.6 (Carbon/OS X)
Lines: 54