🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63154

Re: Is this a valid Message-ID?

#63154
From: greg andruk
Date: Wed, 15 Jan 2003 02:22
27 lines
2833 bytes
Curt Welch wrote:

> I thought C news started using random data in the Message-Id.  But like
> many things, I could be wrong about that.

The C News/INN ID generator addresses a slightly different problem, that of 
intentional rather than accidental collisions.  It's basically a form of 
weak cryptojunk (with the clock and PID being the "secrets").  The plain 
serial numbers were way to easy to preempt.

[...]

> There is one, and only one, algorithm to guarantee uniqueness across all
> Message-IDs.  That's to compare your potential new ID to _every_ Message-ID
> ever used on Usenet in the past.  That of couse is totaly unworkable.

Yep, and for the most part people shouldn't worry too too much about it.  
There's an okay guide at http://www.jwz.org/doc/mid.html
but it also pushes the idea of using a RNG.  I really dislike using the 
word "random" for this stuff, just because there are so many truly awful 
RNGs out there (including one method used for a time by Netscape.

The vast majority of systems (i.e., Windows) do have UuidCreate() and  
CoCreateGuid(), which MS guarantee will give globally unique tags (they 
don't say _how_ they guarantee this, but the mechanism should be plenty 
good enough for news).  That's probably the simplest route for most cases.
Technical Details
Message-ID: <1lpzqv5ee6v2x.dlg@meowing.net>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!news-east.rr.com!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc04.gnilink.net.POSTED!53ab2750!not-for-mail
References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com> <1ashj69g8wsnb.dlg@meowing.net> <20030114203728.176$ac@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1lpzqv5ee6v2x.dlg@meowing.net>
Subject: Re: Is this a valid Message-ID?
Date: Wed, 15 Jan 2003 02:22:36 GMT
From: greg andruk <gja@meowing.net>
References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com> <1ashj69g8wsnb.dlg@meowing.net> <20030114203728.176$ac@newsreader.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!news-east.rr.com!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc04.gnilink.net.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.nntp
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: land of the glass pinecones
X-Meow: Meow
X-No-Repost: yes
X-Face: ')Fflcs!^R}Ds420ESFBO$}^v}i=A9jhnT\3.x#V)XnBrjF8FDwO).{#sN<#bI#A0Y-IU>I iz^}DhL#8nvP8,Ef*_4tdZUl#gwDK=7]>l"53tML>J1S8!)4vsDuy8j0]Rx
User-Agent: 40tude_Dialog/2.0.3.1 (e5af3e16.483.77)
Lines: 26
NNTP-Posting-Host: 141.154.69.125
X-Complaints-To: abuse@verizon.net
X-Trace: nwrddc04.gnilink.net 1042597356 141.154.69.125 (Tue, 14 Jan 2003 21:22:36 EST)
NNTP-Posting-Date: Tue, 14 Jan 2003 21:22:36 EST