🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: tor.news
Article #281

Re: Long message IDs (was Re: attcan't?)

#281
From: Peter Renzland
Date: Wed, 10 May 1989 07:11
24 lines
1385 bytes
In article <1394@ncrcan.Toronto.NCR.COM>, brian@ncrcan.UUCP (Brian Onn) says:
...
[ quoting Evan, who says:]
>>This way, an article could be: <610566286.20194@foo.bar>
...
> I like this.  This would satisfy Geoff's requirement for unique IDs without
> having to keep a separate message counter file that could get truncated.
> It may not be as easily generated from standard unix tools, though.  It is
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> possible to create the current ID in a shell script from date and expr
> contortions.  The new method (if adopted) would require a helper program.
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...

You mean like this?:

	TZ=GMT0GMT export TZ
	set -- `date "+ %y %j %H %M %S"`
	EPOCHDATE=`expr $5 + 60 \* \( $4 + 60 \* \( $3 + 24 \* \( $2 - 1 + \( \( $1 - 69 \) / 4 \) + 365 \* \( $1 - 70 \) \) \) \)`

That's how Shnews does it.

-- 
Peter Renzland @ Ontario Ministry of Health  416/964-9141  peter@ontmoh.UUCP
Technical Details
Message-ID: <610787517.10071@ontmoh.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!ontmoh!peter
References: <1394@ncrcan.Toronto.NCR.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!ontmoh!peter
From: peter@ontmoh.UUCP (Peter Renzland)
Newsgroups: tor.news
Subject: Re: Long message IDs (was Re: attcan't?)
Message-ID: <610787517.10071@ontmoh.UUCP>
Date: 10 May 89 07:11:58 GMT
References: <1394@ncrcan.Toronto.NCR.COM>
Organization: Ontario Ministry of Health -- Decision Support, Toronto, Canada
Lines: 24