Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!ateng!chip From: chip@ateng.com (Chip Salzenberg) Newsgroups: news.software.b Subject: Re: Cnews and long message-ids Message-ID: <249FB1D6.12100@ateng.com> Date: 21 Jun 89 15:18:45 GMT References: <614318400.11519@telly.on.ca> Organization: A T Engineering, Tampa, FL Lines: 34 According to evan@telly.on.ca (Evan Leibovitch), message IDs that encode the date in decimal are better than the default C News message IDs that show the date in human-readable form. Well, I've got one better. Instead of encoding the time in decimal, encode it in hex! Check this article header for an example. To get hex message IDs, apply the following patch. *** relay/sh/anne.jones.P Tue Jun 13 12:37:47 1989 --- relay/sh/anne.jones Wed Jun 21 11:05:36 1989 *************** *** 101,104 **** --- 101,107 ---- esac `" # 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 *************** *** 118,120 **** deffrom="$FROM" deforg="$deforg" \ defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \ ! defmsgid="`set $date; echo \<$6$2$3.\` echo $4 | tr -d : \`.$$@$host\>`" - --- 121,123 ---- deffrom="$FROM" deforg="$deforg" \ defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \ ! defmsgid="`echo \<$gdat.$$@$host\>`" - -- You may redistribute this article only to those who may freely do likewise. Chip Salzenberg | or A T Engineering | Me? Speak for my company? Surely you jest!