From: Paul Stevenson <p.stevenson@surrey.ac.uk>
Subject: Re: `user-mail-address' for message-ids
Date: 28 Feb 2001 08:24:28 +0000 [thread overview]
Message-ID: <i5klmqrqkoz.eccentric@gromit.ph.surrey.ac.uk> (raw)
In-Reply-To: <m34rxg9bti.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "27 Feb 2001 14:15:31 -0500")
P Jarc writes:
> * message.el (message-unique-id): Even uniquer! Use (emacs-pid).
>
> --- message.el~ Tue Feb 27 14:04:55 2001
> +++ message.el Tue Feb 27 14:10:00 2001
I have a sillier way of making Message-ID repetition even more unlikely:
(setq pauls-random-word-file "/usr/dict/words")
(defun message-unique-id ()
(save-excursion
(setq message-unique-id-char
(% (1+ (or message-unique-id-char
(logand (random t) (1- (lsh 1 20)))))
(* 25 25)))
(let ((tm (current-time)))
(concat
(if (memq system-type '(ms-dos emx vax-vms))
(let ((user (downcase (user-login-name))))
(while (string-match "[^a-z0-9_]" user)
(aset user (match-beginning 0) ?_))
user)
(message-number-base36 (user-uid) -1))
(message-number-base36 (+ (car tm)
(lsh (% message-unique-id-char 25) 16)) 4)
(message-number-base36 (+ (nth 1 tm)
(lsh (/ message-unique-id-char 25) 16)) 4)
"."
(progn
(save-excursion
(let ((word-buffer (find-file-noselect pauls-random-word-file))
(number-of-lines)(random-word))
(set-buffer word-buffer)
(widen)
(goto-char (point-min))
(setq number-of-lines (count-lines (point-min) (point-max)))
(random t)
(forward-line (random number-of-lines) )
(let ((here (point)))
(end-of-line)(narrow-to-region here (point)))
(setq random-word (current-word))
(kill-buffer word-buffer)
random-word)))))))
prev parent reply other threads:[~2001-02-28 8:24 UTC|newest]
Thread overview: 115+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-23 20:30 Jason R Mastaler
2001-02-23 21:00 ` Paul Jarc
2001-02-23 21:38 ` Kai Großjohann
2001-02-23 21:47 ` Paul Jarc
2001-02-23 22:30 ` Kai Großjohann
2001-02-23 22:26 ` Jason R. Mastaler
2001-02-23 22:41 ` Paul Jarc
2001-02-23 22:57 ` Jason R. Mastaler
2001-02-23 23:27 ` Paul Jarc
2001-02-23 23:33 ` Jason R. Mastaler
2001-02-24 12:08 ` Kai Großjohann
2001-02-24 16:30 ` Simon Josefsson
2001-02-25 15:13 ` ShengHuo ZHU
2001-02-25 17:47 ` Alan Shutko
2001-02-28 0:09 ` why `system-name' is bad for Message-IDs (was Re: `user-mail-address' for message-ids) Jason R. Mastaler
2001-02-28 0:44 ` Paul Jarc
2001-02-28 1:02 ` Jason R. Mastaler
2001-02-28 1:10 ` Paul Jarc
2001-02-28 1:24 ` Jason R. Mastaler
2001-02-28 14:52 ` Paul Jarc
2001-02-28 1:08 ` Florian Weimer
2001-02-28 1:25 ` Jason R. Mastaler
2001-02-28 2:52 ` Florian Weimer
2001-02-28 14:32 ` Alan Shutko
2001-02-28 15:23 ` Kai Großjohann
2001-02-25 19:46 ` `user-mail-address' for message-ids Paul Jarc
2001-02-27 17:28 ` Jason R. Mastaler
2001-02-27 17:47 ` Kai Großjohann
2001-02-27 17:55 ` Jason R. Mastaler
2001-02-27 18:12 ` Per Abrahamsen
2001-02-27 22:13 ` Jason R. Mastaler
2001-02-27 22:58 ` Kai Großjohann
2001-02-27 23:13 ` Jason R. Mastaler
2001-02-28 0:43 ` Paul Jarc
2001-02-28 1:06 ` Jason R. Mastaler
2001-02-28 1:15 ` Paul Jarc
2001-02-28 3:01 ` Florian Weimer
2001-02-28 11:15 ` Per Abrahamsen
2001-02-28 12:44 ` Florian Weimer
2001-02-28 16:12 ` Jason R. Mastaler
2001-02-28 17:19 ` Florian Weimer
2001-02-28 17:20 ` Paul Jarc
2001-02-28 20:04 ` Kai Großjohann
2001-02-28 16:01 ` Jason R. Mastaler
2001-02-28 6:31 ` Christoph Conrad
2001-02-28 15:31 ` Kai Großjohann
2001-02-28 15:55 ` Norbert Koch
2001-02-28 21:09 ` NAGY Andras
2001-02-28 15:45 ` Toby Speight
2001-02-28 15:48 ` Toby Speight
2001-02-27 18:18 ` Kai Großjohann
2001-02-27 21:44 ` Jason R. Mastaler
2001-02-27 21:54 ` Paul Jarc
2001-02-27 22:47 ` Kai Großjohann
2001-02-28 15:43 ` Toby Speight
2001-02-27 17:52 ` Per Abrahamsen
2001-02-27 18:00 ` Jason R. Mastaler
2001-02-27 18:08 ` Per Abrahamsen
2001-02-27 18:04 ` Jason R. Mastaler
2001-02-27 18:21 ` Kai Großjohann
2001-02-27 21:35 ` Jason R. Mastaler
2001-02-27 21:41 ` Paul Jarc
2001-02-27 21:47 ` Jason R. Mastaler
2001-02-27 22:00 ` Paul Jarc
2001-02-27 21:56 ` Kai Großjohann
2001-02-27 22:04 ` Jason R. Mastaler
2001-02-27 22:14 ` Paul Jarc
2001-02-27 23:51 ` Jason R. Mastaler
2001-02-28 0:54 ` Lloyd Zusman
2001-02-27 18:26 ` Per Abrahamsen
2001-02-27 21:38 ` Jason R. Mastaler
2001-02-27 21:59 ` Kai Großjohann
2001-02-27 22:29 ` Florian Weimer
2001-02-27 23:58 ` Jason R. Mastaler
2001-02-28 1:05 ` Florian Weimer
2001-02-28 1:19 ` Jason R. Mastaler
2001-02-28 2:56 ` Florian Weimer
2001-02-28 15:36 ` Kai Großjohann
2001-02-28 16:04 ` Florian Weimer
2001-02-28 16:08 ` Jason R. Mastaler
2001-02-28 16:02 ` Jason R. Mastaler
2001-02-25 2:05 ` NAGY Andras
2001-02-24 12:10 ` Kai Großjohann
2001-02-25 13:36 ` Per Abrahamsen
2001-02-25 21:00 ` Denys Duchier
2001-02-26 9:35 ` Sender again again (was: Re: `user-mail-address' for message-ids) Per Abrahamsen
2001-02-26 10:53 ` Florian Weimer
2001-02-26 15:43 ` Simon Josefsson
2001-02-26 16:43 ` Florian Weimer
2001-02-26 16:45 ` Cancel-Locks (was: Re: Sender again again (was: Re: `user-mail-address' for message-ids)) Per Abrahamsen
2001-02-26 17:23 ` Cancel-Locks Florian Weimer
2001-02-26 17:40 ` Cancel-Locks Per Abrahamsen
2001-02-27 17:19 ` `user-mail-address' for message-ids Jason R. Mastaler
2001-02-27 17:28 ` Paul Jarc
2001-02-27 17:36 ` Jason R. Mastaler
2001-02-27 17:52 ` Kai Großjohann
2001-02-27 19:05 ` Simon Josefsson
2001-02-27 22:01 ` Kai Großjohann
2001-02-27 22:08 ` Paul Jarc
2001-02-27 23:03 ` Kai Großjohann
2001-02-28 0:31 ` Paul Jarc
2001-02-28 15:38 ` Kai Großjohann
2001-02-27 22:49 ` Samuel Padgett
2001-02-28 15:39 ` Kai Großjohann
2001-03-01 0:38 ` Samuel Padgett
2001-02-28 11:31 ` Per Abrahamsen
2001-02-28 15:48 ` Kai Großjohann
2001-02-27 17:48 ` Per Abrahamsen
2001-02-27 17:49 ` Kai Großjohann
2001-02-27 17:57 ` Jason R. Mastaler
2001-02-27 18:18 ` Per Abrahamsen
2001-02-27 18:22 ` Kai Großjohann
2001-02-27 19:15 ` Paul Jarc
2001-02-27 22:04 ` Kai Großjohann
2001-02-28 8:24 ` Paul Stevenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=i5klmqrqkoz.eccentric@gromit.ph.surrey.ac.uk \
--to=p.stevenson@surrey.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).