Article View: news.software.readers
Article #22276Re: Posting - unique message IDs
From: Michel
Date: Fri, 31 May 1996 00:00
Date: Fri, 31 May 1996 00:00
42 lines
2381 bytes
2381 bytes
In <31ae03ed.170044781@client1.news.psi.net> steve@kazan.com (Steve Zilko) writes: >I am implementing a news reader and poster, and I am dealing with the >need to generate unique message-IDs for the news postings that I am >creating. >The application that I am implementing is a client only, and is >sending its postings to a news server using the POST command of NNTP. >How can I generate a guaranteed unique message-ID for my posting? Is >there a way to request a unique ID from the news server? How does >other posting software handle this issue. Typically, the hostname of the machine is used in the message ID. This ensures that all ID's generated by that machine are unlikely to be duplicated by other machines. Then, the (unix) time of day can be very usefull since every second of any moment in time as we know it, will have a different unix time of day... All you need to ensure now is that when you process multiple messages/seconds, that these messages have unique ID's. A sequence number can be very useful here, and you would only have to keep track of unique sequence numbers every second. Once a new second has begun, you can forget about all former sequence numbers. If you wanna be a hoot, you can even throw in an extra random number and use the CRC-32 over the machines name, multiplied by your mother's age and increased by the unix-time-of-day modulo your feetsize as a seed for rand(). I believe RFC's advise that once a messageID is used, it is not repeated for another 5 years. I think the above would garantee that w/o problem. >Any pointers to RFCs, shareware, articles, etc. will be greatly >appreciated!!! RFC 822 and kins... Michel.
Technical Details
Message-ID:
<michel.833536582@nijenrode.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!not-for-mailReferences:
<31ae03ed.170044781@client1.news.psi.net>Show Full Headers
Complete Article Headers
Message-ID: <michel.833536582@nijenrode.nl> Subject: Re: Posting - unique message IDs Date: Fri, 31 May 1996 00:00:00 +0000 From: michel@nijenrode.nl (Michel) References: <31ae03ed.170044781@client1.news.psi.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!not-for-mail X-Deja-AN: 157800325 Distribution: world Sender: zorch@ftp.UU.NET Organization: Nijenrode University, The Netherlands Newsgroups: news.admin.technical,news.software.readers