Thread View: news.software.nntp
13 messages
13 total messages
Started by Jan Krumsiek
Thu, 15 Feb 2001 12:44
message-id when posting
Author: Jan Krumsiek
Date: Thu, 15 Feb 2001 12:44
Date: Thu, 15 Feb 2001 12:44
8 lines
1276 bytes
1276 bytes
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?? i found a news server which automatically generates an id, do all servers do that???? jan
Re: message-id when posting
Author: Prefilled Meowbot
Date: Thu, 15 Feb 2001 13:17
Date: Thu, 15 Feb 2001 13:17
17 lines
1867 bytes
1867 bytes
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 found a news server which automatically generates an id, do all > servers do that???? Yes, but only a few servers will tell you what that ID will be in advance. If you are trying to keep a local posting history, you may be stuck with rolling your own IDs.
Re: message-id when posting
Author: Jan Krumsiek
Date: Thu, 15 Feb 2001 15:41
Date: Thu, 15 Feb 2001 15:41
6 lines
1082 bytes
1082 bytes
well, ok, i think i can handle that! thank you very much, jan
Re: message-id when posting
Author: J.B. Moreno
Date: Fri, 16 Feb 2001 19:09
Date: Fri, 16 Feb 2001 19:09
24 lines
1800 bytes
1800 bytes
In article <MPG.14f5ed814576a1f0989688@news.btx.dtag.de>, Jan Krumsiek <Jan.Krumsiek.Nospam@gmx.de> wrote: > i'm writing a newsreader Take a look at the GNKSA, <http://www.gnksa.org/>, as well as look around the tech section of newsreaders.com. > 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?? i found a news server which > automatically generates an id, do all servers do that???? No, the server will generate it for you if you don't include one. But it is frequently a good idea to do so, most servers won't tell you what id they are assigning, it can be used to prevent posting duplicate articles (when the post seems to fail but doesn't), as well as allowing the user (and others) to more easily track posts and followups. -- J.B. Moreno
Re: message-id when posting
Author: Dirk Nimmich
Date: Fri, 16 Feb 2001 21:06
Date: Fri, 16 Feb 2001 21:06
17 lines
1705 bytes
1705 bytes
J.B. Moreno wrote: [Generation of message-ids in newsreaders] > But it is frequently a good idea to do so The only reason I see is to track your postings and answers to them (as you mentioned downwards). The following ... > it can be used to prevent posting duplicate > articles (when the post seems to fail but doesn't) ... is not, because generating a message-id alone does not prevent duplicates (remember Netscape 3?). Care must be taken of the user interface and program logic, too -- and in the first place. And if you do, there won't be duplicates even without a message-id generated by the newsreader. (How many duplicates posted with e.g. tin have you seen?)
Re: message-id when posting
Author: J.B. Moreno
Date: Sat, 17 Feb 2001 05:47
Date: Sat, 17 Feb 2001 05:47
39 lines
2493 bytes
2493 bytes
In article <96k4o9$qlq$1@redenix.uni-muenster.de>, Dirk Nimmich <nimmich@uni-muenster.de> wrote: > J.B. Moreno wrote: > [Generation of message-ids in newsreaders] > > But it is frequently a good idea to do so > > The only reason I see is to track your postings and answers to them > (as you mentioned downwards). Yep, although he (the OP) should note that it's not the only way of doing so, and isn't 100% reliable as some servers will rewrite the message-id, but fairly reliable and under the newsreaders control. > The following ... > > > it can be used to prevent posting duplicate > > articles (when the post seems to fail but doesn't) > > ... is not, because generating a message-id alone does not prevent > duplicates (remember Netscape 3?). Care must be taken of the user > interface and program logic, too -- and in the first place. And if > you do, there won't be duplicates even without a message-id > generated by the newsreader. (How many duplicates posted with e.g. > tin have you seen?) Of course you can generate your own message-id's and still post duplicates, but if you do it sensibly it can at the very least make it *easier* to avoid duplicates. As for duplicates with tin -- I'm not sure that is a fair test, given the lousy behavior of OE and NS, a percentage of tin users using a local server that doesn't time out, and a better algorithm for avoiding duplicates even if you don't generate the message-id, an occasional duplicate from tin would be practically unnoticeable. -- J.B. Moreno
Re: message-id when posting
Author: Armin Zingler
Date: Sat, 17 Feb 2001 15:59
Date: Sat, 17 Feb 2001 15:59
29 lines
1910 bytes
1910 bytes
"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? Thanks Armin
Re: message-id when posting
Author: Globally Redundant Meowbot
Date: Sat, 17 Feb 2001 16:38
Date: Sat, 17 Feb 2001 16:38
14 lines
1855 bytes
1855 bytes
Armin Zingler <armin.zingler@freenet.de> wrote: > 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. Right. Message IDs should be regarded as globally unique identifiers. If two articles have the same ID, each server will only beable to carry one. RFC 1036 recommends that IDs should be unique for a minimum of two years. This is not enough time. "Forever" is a better minimum.
Re: message-id when posting
Author: Armin Zingler
Date: Sat, 17 Feb 2001 18:22
Date: Sat, 17 Feb 2001 18:22
23 lines
1782 bytes
1782 bytes
"Globally Redundant Meowbot" <meowbot@meowing.net> schrieb > Armin Zingler <armin.zingler@freenet.de> wrote: > > > 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. > > Right. Message IDs should be regarded as globally unique identifiers. > If two articles have the same ID, each server will only beable to > carry one. ..and each client, either ;-) (no I know where to set my primary key ;-) ) Thanks Armin
Re: message-id when posting
Author: J.B. Moreno
Date: Sat, 17 Feb 2001 21:06
Date: Sat, 17 Feb 2001 21:06
55 lines
3503 bytes
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
Re: message-id when posting
Author: Jeremy
Date: Sat, 17 Feb 2001 23:52
Date: Sat, 17 Feb 2001 23:52
33 lines
2271 bytes
2271 bytes
Armin Zingler <armin.zingler@freenet.de> wrote: > 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. Probably not a good idea to design your client to do this. The main problem with what you're suggesting is that there are some servers out there which silently clobber client-supplied message-ids and replace them with server-generated ones. This is a horrible practice (which has been discussed in this group before, but not lately) which no one should engage in, but the fact is that some do engage in it, and it will result in multiple copies of an article if you incorrectly assume the server is well-behaved. If you've actually tested each server by posting to a test group with a client-supplied message-id and then examining the articles to see if your id survived, then as long as all is well, posting to multiple servers won't generate duplicates. > How unique does the message ID have to be? Unique for a newsgroup, for > a server or unique at all? Unique across all messages on Usenet, past, present and future, forever. You should really leave message-id generation to the server unless you really know what you're doing and have an actual reason to generate them yourself other than "because I can". It's easy to generate poor ids. -- Jeremy | jeremy@exit109.com
Re: message-id when posting (thanks)
Author: Armin Zingler
Date: Sun, 18 Feb 2001 11:25
Date: Sun, 18 Feb 2001 11:25
18 lines
1567 bytes
1567 bytes
Hi, I didn't intend to supply message IDs. I was just interested in what will happen, if I would. The question came up, becaues in the RFC, I couldn't find that I don't have to generate it. It could be read as if I must do it. The simple problem concerning uniqueness of message IDs is the question of the primary key for my database: ID or Server+ID or Server+Group+ID and so on. I'm now using just the ID for PK. Thank you all! Armin
Re: message-id when posting
Author: uhlar
Date: Mon, 19 Feb 2001 14:46
Date: Mon, 19 Feb 2001 14:46
27 lines
2548 bytes
2548 bytes
Armin Zingler <armin.zingler@freenet.de> wrote: -> 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. yes, they both will send the message to all servers in their feed lists and/or all pulling servers will download those messages None from those servers will get both messages, because they will think it's the same message. So, all servers will have just one of those messages and if you post the to the same newsgroup, it will bee funny when people reply to it. You can try to post the same message to more servers. But I think it's useless. servers should care about message distribution... -- Matus "fantomas" Uhlar, sysadmin at NEXTRA, Slovakia; IRCNET admin of *.sk uhlar@fantomas.sk ; http://www.fantomas.sk/ ; http://www.nextra.sk/ Windows 2000: 640 MB ought to be enough for anybody --- Odchoz� zpr�va obsahuje viry. Zkontrolov�no antivirov�m syst�mem AVG (http://www.grisoft.cz). Verze: 6.0.230 / Virov� b�ze: 111 - datum vyd�n�: 25.1.2001
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