Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!rutgers!nirvo!kdg From: kdg@nirvo.uucp (Kurt Gollhardt) Newsgroups: news.software.b Subject: Re: Cnews and long message-ids Summary: pid in hex for message-ids Keywords: hex message id Message-ID: <24C90FF9.5AB3@nirvo.uucp> Date: 23 Jul 89 00:23:20 GMT References: <614318400.11519@telly.on.ca> <249FB1D6.12100@ateng.com> Reply-To: kdg@nirvo.UUCP (Kurt Gollhardt) Organization: Nirvonics, Inc. - Plainfield, NJ Lines: 51 In <249FB1D6.12100@ateng.com>, chip@ateng.com (Chip Salzenberg) goes evan@telly.on.ca (Evan Leibovitch) once step better, encoding message-id dates in hex instead of decimal. Chip's patch, while very handy, claims to do more than it actually does: >+ # date and pid in base 36 to make them shorter Contrary to what this comment says, the pid is still in decimal. I'll add my contribution by taking it that extra little bit further. Here's a diff (on top of Chip's <249FB1D6.12100@ateng.com> diff) which really does put the pid in hex: *** relay/sh/anne.jones.old Sat 07/22/89 19:27:24 --- relay/sh/anne.jones Sat 07/22/89 19:58:44 *************** *** 102,107 `" # for defdate, defmsgid # date and pid in base 36 to make them shorter gdat=`(echo 16o; getdate now; echo p) | dc` # name of organization case "$ORGANIZATION" in "") deforg="`sed 1q $NEWSCTL/organi[sz]ation`" ;; # look in a file --- 102,108 ----- `" # for defdate, defmsgid # date and pid in base 36 to make them shorter gdat=`(echo 16o; getdate now; echo p) | dc` + pid=`(echo 16o; echo $$; echo p) | dc` # name of organization case "$ORGANIZATION" in "") deforg="`sed 1q $NEWSCTL/organi[sz]ation`" ;; # look in a file *************** *** 120,123 defpath="$badsites$USER" \ deffrom="$FROM" deforg="$deforg" \ defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \ ! defmsgid="`echo \<$gdat.$$@$host\>`" - --- 121,124 ----- defpath="$badsites$USER" \ deffrom="$FROM" deforg="$deforg" \ defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \ ! defmsgid="<$gdat.$pid@$host>" - -- ============== ============== # Kurt Gollhardt Nirvonics, Inc. -- Plainfield, NJ # # ...!rutgers!nirvo!kdg Software Design and Consulting # ============== ==============