🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #37562

Re: going to extremes to save 8 bytes in Message-ID: header (was Re: SLRNPULL: Need info to crontab post)

#37562
From: Curtis [Jewell] Whalen
Date: Fri, 12 Dec 1997 00:00
58 lines
2824 bytes
On Fri, 12 Dec 1997 02:09:29 +0000, Russell Schulz
 <Russell_Schulz@locutus.ofB.ORG> wrote:
>
>I used to use a system which played that let's-encode-the-date-time
>game, and it was such a pain to decode a posting timestamp from
>the Message-ID: (which people wanted to do) that I am now somewhat
>staggered by people who bother to do it now.
>
>I still find <yyyymmdd.hhmmss.random.address> to be a great Message-ID:
>header (as before, adding the random element only in case you cross
>time zones between two postings).  if you want to add `slrn' in front,
>feel free.
>
>  <slrn68ur83.8be.davis@mygir.davis.net>
>  <slrn19971211.104820.x3.davis@mygir.davis.net>
>                                        12345678
>
>if I got rid of the random, and the 3 periods, it'd be only 3 chars.

No, you need at least one "random" or "counter" thing in there, just in
case two messages get sent out the same second.

May apply more to servers that create Message-ID:s for programs that
don't add them, but still a good idea.

But two of the periods can be gotten rid of. (Keep the one before the
e-mail address)

Personally, the way I write message-IDs in my programs is
  <time_t-in-hex.counter%address>.

Even for my long posting address, it ends up as
  <09ABCDEF.1%curtis_whalen+usenet@geocities.com>

And yes, the percent sign is legal in Message-ID:

Very little code needed. (practically all you need once you have the e-mail
addy is:
        time_t lTime = time(); // I think this is the right call
        sprintf(sMsgID, "<%8Xl.%i%%%s>", lTime, iCounter, sEMail);
        iCounter++;
)

Although I do have to admit, decoding a time_t by hand would not be my idea
of a fun time.

Message-ID isn't where a program should be advertised, anyway.
Add User-Agent: slrn/0.9.4.3 instead. (or X-Newsreader until Usefor's draft
gets anywhere)

I know, I'm gravitating away from about readers.

E-mail replies to curtis underline whalen plus email at geocities dot com.

--Curtis

Technical Details
Message-ID: <66ruqr$7vn@snews3.zippo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn68mb8t.rh.greycloak@greycloak.access.one.net> <slrn68ur83.8be.davis@mygir.davis.net> <19971212.020929.5M4.rnr.w164w_-_@locutus.ofB.ORG>

Show Full Headers
Complete Article Headers
Message-ID: <66ruqr$7vn@snews3.zippo.com>
Subject: Re: going to extremes to save 8 bytes in Message-ID: header (was Re: SLRNPULL: Need info to crontab post)
Date: Fri, 12 Dec 1997 00:00:00 +0000
From: curtis_whalen+usenet@geocities.com (Curtis [Jewell] Whalen)
References: <slrn68mb8t.rh.greycloak@greycloak.access.one.net> <slrn68ur83.8be.davis@mygir.davis.net> <19971212.020929.5M4.rnr.w164w_-_@locutus.ofB.ORG>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 297654060
Followup-To: poster
Organization: Zippo News Service [http://www.zippo.com]
Newsgroups: news.software.readers