Article View: news.software.nntp
Article #89700Re: How to permit user to set the right part of message-id
From: Russ Allbery
Date: Sun, 09 Oct 2022 05:11
Date: Sun, 09 Oct 2022 05:11
32 lines
2262 bytes
2262 bytes
Franck <franck@email.invalid> writes:
> Hello Russ,
>> That takes the date as a number (20220922222200) and represents it in 6
>> bytes, which is good enough for the next 10,000 years. With a timestamp,
>> I'm pretty sure you could cut that down to 64 bits and still be pretty
>> comfortable, which gives you something like:
>> EmQM4tZ4$uYRo9tEy/80@example.com
> Quickly implemented in Spitfire News Server for testing purposes.
> Message-ID: <EmQSD29Yka97hBQCPZo=@news.spitfire-nntp.fr>
> The result is only slightly larger than my previous format but I give it a
> chance :)
Oh, since someone is actually using this, I should mention that I realized
after my post that this is a kind of silly encoding of the date and you
should just use seconds since epoch, which will carry the same information
and be a lot more compact.
Also, you can drop the = padding signs from the end of the base64 output.
The amount of padding required can be calculated from the length of the
string once you know it's base64-encoded, so it doesn't add any
information.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87lepph98o.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<632790d3$0$22052$426a74cc@news.free.fr> <87y1ufxary.fsf@hope.eyrie.org> <tgc30j$7s0o$4@news.trigofacile.com> <87sfkmxcsj.fsf@hope.eyrie.org> <tgje47$2eubv$4@dont-email.me> <87zgeqfy8k.fsf@hope.eyrie.org> <thteto$1777$1@gioia.aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <87lepph98o.fsf@hope.eyrie.org> Subject: Re: How to permit user to set the right part of message-id Date: Sat, 08 Oct 2022 22:11:19 -0700 From: Russ Allbery <eagle@eyrie.org> References: <632790d3$0$22052$426a74cc@news.free.fr> <87y1ufxary.fsf@hope.eyrie.org> <tgc30j$7s0o$4@news.trigofacile.com> <87sfkmxcsj.fsf@hope.eyrie.org> <tgje47$2eubv$4@dont-email.me> <87zgeqfy8k.fsf@hope.eyrie.org> <thteto$1777$1@gioia.aioe.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Mime-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="16330"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:+YtOpmg7kFj76Jq3il4OCa6If6Q=