From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88863 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Message-ID's secret Date: Sun, 17 Nov 2019 17:40:00 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87k17yv4m7.fsf@tullinup.koldfront.dk> References: <87h833zwah.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="113588"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M37067@lists.math.uh.edu Sun Nov 17 17:40:54 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iWNbZ-000TLo-FN for ding-account@gmane.org; Sun, 17 Nov 2019 17:40:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1iWNb3-0001VY-0J; Sun, 17 Nov 2019 10:40:21 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iWNay-0001So-P9 for ding@lists.math.uh.edu; Sun, 17 Nov 2019 10:40:16 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iWNaw-0001ua-Ig for ding@lists.math.uh.edu; Sun, 17 Nov 2019 10:40:16 -0600 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226] helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iWNaq-0008Rq-EO for ding@gnus.org; Sun, 17 Nov 2019 17:40:10 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iWNao-000Sfs-TH for ding@gnus.org; Sun, 17 Nov 2019 17:40:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88863 Archived-At: 황병희 writes: >> (message-number-base36 (user-uid) -1)) > > Sorry still i do not understand what that means. Let's unpack inside-out: ,----[ C-h f user-uid RET ] | user-uid is a built-in function in ‘C source code’. | | (user-uid) | | Probably introduced at or before Emacs version 18. | This function does not change global state, including the match data. | | Return the effective uid of Emacs. | Value is a fixnum, if it’s small enough, otherwise a bignum. `---- So we get the uid of the user running Emacs. If you're on a one-user Linux-system, that's often 1000. For example, on my Debian GNU/Linux machine: $ grep $USER /etc/passwd asjo:x:1000:1000:Adam Sjøgren,,,:/home/asjo:/bin/bash my uid is 1000. Now, the next function: ,----[ C-h f message-number-base36 RET ] | message-number-base36 is a compiled Lisp function in ‘message.el’. | | (message-number-base36 NUM LEN) | | Not documented. `---- Not documented, but we can guess what it does from the name - it takes a number and a length as input, and converts it to base36. Here is the entire function from message.el: (defun message-number-base36 (num len) (if (if (< len 0) (<= num 0) (= len 0)) "" (concat (message-number-base36 (/ num 36) (1- len)) (char-to-string (aref "zyxwvutsrqponmlkjihgfedcba9876543210" (% num 36)))))) As 1000 is 27*36 + 28*1, you can see it gets translated into "87" by this function. So there is no secret here. > We can set other user-uid by setq? No, but if you run Emacs as another user, with another uid, you get another beginning of your Message-ID. Best regards, Adam -- "I wish *I* was a tiger!" Adam Sjøgren "A common lament." asjo@koldfront.dk