Article View: news.software.readers
Article #59530Re: slrn - message-id generation with vim autocommand
From: Mike Uhl
Date: Thu, 23 Mar 2000 00:00
Date: Thu, 23 Mar 2000 00:00
43 lines
3614 bytes
3614 bytes
On 23 Mar 2000, (Sven Guckes)
smoked my sorry cornpewter with this blazing revelation:
> So I am now using this format:
> <YYYYmmddHHMM@domain>
Not to say that my way is any better, but only to say the way I do it
is with <My.Name.YYYYmmddHHMMSSss@domain> simply to decrease the
possibility of it being duplicated. (OK, so ShoeLeather.Express is not
a real domain, but it is unique.) :-)
> This line was generated with this simple "autocommand":
>
> au BufNewFile,BufRead \
> ~/.article,~/.followup \
> let @"="Message-ID: <".strftime("%Y%m%d%H%M")."@guckes.net>\n"\
> |exe 'norm 1G}""P'
> Hey, comp.editors - comments anyone?
Well, since I use Vim 3.0, my command structure for this function is a
bit more complicated and not quite as well-polished as yours. ;-)
> And news.software.readers - is the Message-ID okay?
> Or does this really need some pseudo random number?
I would say that the precise time that you start your post is about as
random as you can get, but just to avoid anything odd happening, I
have my clock set for GMT no matter where I am. With
<My.Name.YYYYmmddHHMMSSss@domain> where 'ss' is in the hundredths of a
second, it still is possible, though *extremely* improbable, that a
message number like that will be duplicated.
> Sven [now everyone know how long it takes me to write a post - dang!]
I take forever to write a post, so I always have to do it offline.
If I try to do it online, I time out frequently. ;-)
--
[,,^..^,,]<<< ShoeLeather_Express@RadioLink.net >>>[,,^..^,,]
http://www.vim.org - the ancient VIM 3.0 is *MY* OffLineNewsReader :-)
For every problem there is one solution which is
simple, neat, and wrong. -- H. L. Mencken
Technical Details
Message-ID:
<Mike.Uhl.2000032311585084@ShoeLeather.Express>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.editors.mbox.zip!not-for-mailReferences:
<200003230532@guckes.net>Show Full Headers
Complete Article Headers
Message-ID: <Mike.Uhl.2000032311585084@ShoeLeather.Express> Subject: Re: slrn - message-id generation with vim autocommand Date: Thu, 23 Mar 2000 00:00:00 +0000 From: Mike Uhl <ShoeLeather_Express@RadioLink.net> References: <200003230532@guckes.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.editors.mbox.zip!not-for-mail X-Deja-AN: 601279655 X-Permanent-Forwarding-Address: ShoeLeather_Express@RadioLink.net Comments: Please reply to the group OR by email -- NOT BOTH!!! Thanx! X-Email-1: shulethr@altern.org X-Email-2: shulethr@ultrashell.net X-Email-3: shulethr@lonestar.org X-Email-4: shulethr@freewwweb.com X-Email-5: shulethr@hobbiton.org X-Pine: But I try my hand at Sendmail too :-) X-Insanity: Reality X-URL-1: http://www.altern.org/shulethr X-Forwarder-Pointing-To: shulethr@altern.org X-URL-2: http://users.ultrashell.net/~shulethr X-MyCheapLapTop: Compaq SLT/286 with blown hard drive ;-) X-Email-Other: Others available as needed. Checked daily. ;-) Reply-To: Mike Uhl <ShoeLeather_Express@RadioLink.net> X-ShellYeah-ID: shulethr X-Reality: A Figment of the Imagination X-Newsposter: Lynx or mail2news@anon.lcs.mit.edu X-NNTP-Posting-Host: my.floppy.disk.thru.tel.net Mail-Copies-To: nobody X-My-ISP-Independent-Shell: http://www.ultrashell.net Organization: Insane Clownship and Magistrate of the Mindless Heads of State X-Imagination: A Controlled Form of Insanity Mail-To-News-Contact: postmaster@nym.alias.net X-OfflineNewsreader: VIM 3.0 X-MyFreeISP: http://www.freewwweb.com User-Agent: Conex 7.1 and Waterloo TCP Package (Experimental) Newsgroups: news.software.readers,comp.editors