Thread View: news.software.readers
15 messages
15 total messages
Started by Sven Guckes
Thu, 23 Mar 2000 00:00
slrn - message-id generation with vim autocommand
Author: Sven Guckes
Date: Thu, 23 Mar 2000 00:00
Date: Thu, 23 Mar 2000 00:00
55 lines
2477 bytes
2477 bytes
I intend to add this to my slrnrc. Comments?
FAQ: How do I generate the Message-ID within SLRN?
Answer:
(1) You need to compile slrn to allow generation
of Message-IDs, ie in src/slrnfeat.h you need:
#define SLRN_HAS_GEN_MSGID 1
(2) In the setup file of slrn you need to set this:
set generate_message_id 1
Now you can add the Message-ID to your header and
your newsserver has to accept your Message-ID, too.
FAQ: What kind of Message-ID format is allowed?
Answer: The RFC0822 defines this.
(Does anyone have a "nice" regexpr for this?)
I thought about using this format:
<Agent-Version.OS.YYYYmmddHHMM@domain>
Then again, the info on "Agent" and "OS" is on "User-Agent:", anyway.
(Besides, "uname" on SunOS would append a CTRL-J at the end of the
output which I didn't want to have removed with yet more commands.
Also, "uname" is not available on Windows. :-p )
So I am now using this format:
<YYYYmmddHHMM@domain>
I let my editor, Vim, add this line for me automatically on startup:
Message-ID: <200003230532@guckes.net>
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'
Yes, this autocommand is broken across lines
where the backslashes ('\') at the end of
the line indicate a "continuation line".
It can probably be made easier to read
but I am too tired now to do that. ;-)
Hey, comp.editors - comments anyone?
And news.software.readers - is the Message-ID okay?
Or does this really need some pseudo random number?
Sven [now everyone know how long it takes me to write a post - dang!]
Re: slrn - message-id generation with vim autocommand
Author: J. Moreno
Date: Thu, 23 Mar 2000 00:00
Date: Thu, 23 Mar 2000 00:00
41 lines
2058 bytes
2058 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: > I intend to add this to my slrnrc. Comments? > > FAQ: How do I generate the Message-ID within SLRN? > Answer: > (1) You need to compile slrn to allow generation > of Message-IDs, ie in src/slrnfeat.h you need: > #define SLRN_HAS_GEN_MSGID 1 > (2) In the setup file of slrn you need to set this: > set generate_message_id 1 > > Now you can add the Message-ID to your header and > your newsserver has to accept your Message-ID, too. Your newsserver doesn't have to do anything of the sort -- it generally will and I believe it /should/, but it doesn't /have/ to. > FAQ: What kind of Message-ID format is allowed? > Answer: The RFC0822 defines this. > (Does anyone have a "nice" regexpr for this?) > > I thought about using this format: > > <Agent-Version.OS.YYYYmmddHHMM@domain> Agent and OS should be in the User-Agent header (as you say). A now expired draft recommended using the format <unique%emailaddress>, so you might want do something like: <YYYYmmddHHMM%guckes@math.fu-berlin.de> Although -- there is a problem with some programs and the "%", it needs to be encoded before it's used as part of a URL, anybody see a problem with using "!" (other than it not being as visually distinctive)? -- John Moreno
Re: slrn - message-id generation with vim autocommand
Author: 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
Re: slrn - message-id generation with vim autocommand
Author: Ralf Arens
Date: Thu, 23 Mar 2000 00:00
Date: Thu, 23 Mar 2000 00:00
55 lines
2040 bytes
2040 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote:
> I intend to add this to my slrnrc. Comments?
Yes.
[...]
> So I am now using this format:
> <YYYYmmddHHMM@domain>
Which is ambiguous. See below.
> I let my editor, Vim, add this line for me automatically on startup:
> Message-ID: <200003230532@guckes.net>
[...]
> 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?
Still yes.
> And news.software.readers - is the Message-ID okay?
No, it isn't. (Even if I'm reading comp.editors now. :-)
> Sven [now everyone know how long it takes me to write a post - dang!]
Yes, now I know it, it takes -33 minutes. Wow, that's fast.
| Message-ID: <200003230532@guckes.net>
| Date: 23 Mar 2000 04:59:05 GMT
The date of the message-id is localtime. If you travel and run across
timezones and you write a message at exactly the same minute the
appropriate hours later, your message-id won't be unique. OK, there
are many "if"s but it is possible. You should use always GMT for
strftime() [I didn't find out how] or you should add your timezone:
strftime("%Y%m%d%H%M%Z")
Ciao,
Ralf
--
> I don't do drugs or windows.
You need the one to do the other :-)
-- Steve Baur and Adrian Aichner on xemacs-beta
Re: slrn - message-id generation with vim autocommand
Author: J. Moreno
Date: Thu, 23 Mar 2000 00:00
Date: Thu, 23 Mar 2000 00:00
41 lines
2032 bytes
2032 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: > I intend to add this to my slrnrc. Comments? > > FAQ: How do I generate the Message-ID within SLRN? > Answer: > (1) You need to compile slrn to allow generation > of Message-IDs, ie in src/slrnfeat.h you need: > #define SLRN_HAS_GEN_MSGID 1 > (2) In the setup file of slrn you need to set this: > set generate_message_id 1 > > Now you can add the Message-ID to your header and > your newsserver has to accept your Message-ID, too. Your newsserver doesn't have to do anything of the sort -- it generally will and I believe it /should/, but it doesn't /have/ to. > FAQ: What kind of Message-ID format is allowed? > Answer: The RFC0822 defines this. > (Does anyone have a "nice" regexpr for this?) > > I thought about using this format: > > <Agent-Version.OS.YYYYmmddHHMM@domain> Agent and OS should be in the User-Agent header (as you say). A now expired draft recommended using the format <unique%emailaddress>, so you might want do something like: <YYYYmmddHHMM%guckes@math.fu-berlin.de> Although -- there is a problem with some programs and the "%", it needs to be encoded before it's used as part of a URL, anybody see a problem with using "!" (other than it not being as visually distinctive)? -- John Moreno
Re: slrn - message-id generation with vim autocommand
Author: Sylvan Butler
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
39 lines
2317 bytes
2317 bytes
On 23 Mar 2000 04:59:05 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>I intend to add this to my slrnrc. Comments?
Looks pretty good! Glad you figured it out. That's what I get for not
checking changes.txt and assuming the sample slrn.rc would have it.
>Now you can add the Message-ID to your header and
>your newsserver has to accept your Message-ID, too.
Unclear... It sounds like you are saying the server is required to
accept it, when what you mean is that for this to work the server must
be configured to accept it. That's probably not any more clear...
> Also, "uname" is not available on Windows. :-p )
Sure it is:
M:\sylvan>uname -a
WindowsNT watt 0 4 x86
>I let my editor, Vim, add this line for me automatically on startup:
Cool. munch. Thank you. :)
>Or does this really need some pseudo random number?
I think the time you start your editor is pseudo-random enough,
especially when combined with the rest of the string. The other
comments on GMT or timezone are worth considering.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn - message-id generation with vim autocommand
Author: Sven Guckes
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
41 lines
2262 bytes
2262 bytes
* J. Moreno <planb@newsreaders.com>: > > Now you can add the Message-ID to your header and > > your newsserver has to accept your Message-ID, too. > Your newsserver doesn't have to do anything of the sort -- > it generally will and I believe it /should/, > but it doesn't /have/ to. I am aware of that. However, I need some uniqueness In the ID to be able to score followups in some way. > A now expired draft recommended using the format > <unique%emailaddress>, so you might want do something like: > <YYYYmmddHHMM%guckes@math.fu-berlin.de> I thought I'd rather use "guckes.net" in the Message-ID (to allow scoring and lookup via deja.com) as it is my domain and use "From: address" depending on the account I am posting from. Is that a good idea? > Although -- there is a problem with some programs and the "%", it needs > to be encoded before it's used as part of a URL, anybody see a problem > with using "!" (other than it not being as visually distinctive)? I guess all kinds of delimiters pose *some* problem. There does not happen to be an RFC on this, does there? I am inclined to use this format now: <YYYYmmddHHMM%sven@guckes.net> I'd also like to give the time in GMT - but apparantly strftime does not have an option for this. So maybe I'll just include the time zone name in this? Wasn't there some ISO thingie for time representation, too? Sven [short on time right now]
Re: slrn - message-id generation with vim autocommand
Author: Sven Guckes
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
25 lines
1856 bytes
1856 bytes
* Thomas K�hler <jean-luc@picard.franken.de>:
> > au BufNewFile,BufRead \
> > ~/.article,~/.followup \
> > let @"="Message-ID: <".strftime("%Y%m%d%H%M")."@guckes.net>\n"\
> > |exe 'norm 1G}""P'
> >
> > Yes, this autocommand is broken across lines
> > where the backslashes ('\') at the end of
> > the line indicate a "continuation line".
> I don't believe this will work (:-)
Right - Vim's autocommands must be given on one line.
I don't like that myself and I'd rather have Slang as an
internal language to Vim - but then who would use "jed"? ;-)
(And, no, I would not choose Lisp, thankyouverymuch.)
Sven
--
Sven Guckes HOLY WARS of Usenet guckes-holy-wars@math.fu-berlin.de
HOLY EDITOR: emacs|vi TEXT: text/plain|base64|quoted-printable
HOLY PAGER: less|more SHELL: sh|bash|ksh|tcsh|zsh (csh is dead!)
HOLY OS: linux|windows* TABU: indentprefix="> " sigdashes=ON
Re: slrn - message-id and slrn.rc
Author: Sven Guckes
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
59 lines
2969 bytes
2969 bytes
* Sylvan Butler <nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid>: > >I intend to add this to my slrnrc. Comments? > Looks pretty good! Glad you figured it out. That's what I get for not > checking changes.txt and assuming the sample slrn.rc would have it. The sample slrn.rc should be updated with the next release! Actually, I hope that I can include the old one in my slrn.rc and have mine included, too, so you can skip most of the docs and simply adjust my setup file to get things working. [JED?] > >Now you can add the Message-ID to your header and > >your newsserver has to accept your Message-ID, too. > Unclear... It sounds like you are saying the server is required to > accept it, when what you mean is that for this to work the server must > be configured to accept it. That's probably not any more clear... I was told that our newsserver may not accept some Message-IDs - but I am not clear as to which checks are made on these. Sorry. > > Also, "uname" is not available on Windows. :-p ) > Sure it is: > M:\sylvan>uname -a > WindowsNT watt 0 4 x86 Me and my big mouth. ;-) I figured that some people would not be able to live without it... Let's try this: Z:\> uname -a CYGWIN_NT-4.0 SOMERVILLE 20.1 (0.3/1/1) 1998-12-3 20:39:18 i686 unknown Of course I had to type this in manually as I cannot copy from a command.com . God, I *hate* Windows*! would anyone still be using Windows without all those extra Unix tools? > >I let my editor, Vim, add this line for me automatically on startup: > Cool. munch. Thank you. :) You are welcome! :-) > >Or does this really need some pseudo random number? > I think the time you start your editor is pseudo-random enough, > especially when combined with the rest of the string. I should be the only one posting with a Message-ID with "guckes.net". But do I need every instantiation of mine to add a random number now? Hmm... > The other comments on GMT or timezone are worth considering. The comemnt was well taken! Sven
Re: slrn - message-id generation with vim autocommand
Author: Thomas Köhler
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
51 lines
2574 bytes
2574 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote:
> I intend to add this to my slrnrc. Comments?
>
> FAQ: How do I generate the Message-ID within SLRN?
> Answer:
[apart from the things other people allready pointed out]
> 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'
>
> Yes, this autocommand is broken across lines
> where the backslashes ('\') at the end of
> the line indicate a "continuation line".
> It can probably be made easier to read
> but I am too tired now to do that. ;-)
I don't believe this will work (:-)
From vim's help about line-continuation:
*line-continuation*
Long lines in a ":source"d Ex command script file can be split by inserting
a line continuation symbol "\" (backslash) at the start of the next line.
There can be white space before the backslash, which is ignored.
[...]
Rationale: Most programs work with a trailing backslash to indicate line
continuation. Using this in Vim would cause incompatibility with Vi. For
example for this Vi mapping:
> map xx asdf\
Therefore the unusual leading backslash is used.
> Hey, comp.editors - comments anyone?
Of course. Place the \ at the beginning of the next line (;-)
> Sven [now everyone know how long it takes me to write a post - dang!]
CU,
Thomas
--
Thomas K�hler Email: jean-luc@picard.franken.de | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
Re: slrn - message-id generation with vim autocommand
Author: RST
Date: Sat, 25 Mar 2000 00:00
Date: Sat, 25 Mar 2000 00:00
32 lines
2508 bytes
2508 bytes
Ken Pizzini <ken@halcyon.com> wrote: @ On 24 Mar 2000 20:33:53 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote: @ >I am inclined to use this format now: @ > @ > <YYYYmmddHHMM%sven@guckes.net> @ @ >Wasn't there some ISO thingie @ >for time representation, too? @ @ ISO 8601. Your timestamp above is almost conformant with this; @ just add a "T" between the dd and the HH and you comply. Another @ ISO 8601 format which is popular is to add a few specific delimiters @ between components: YYYY-mm-ddTHH:MM (e.g, 2000-03-24T14:26), @ though the timestamp is still unambiguious even without them. @ (BTW: I would personally increase the resolution down to at @ least seconds --- 20000324T142642 or 2000-03-24T14:26:42. Also @ BTW: the "T" in the 8601 standard is often referred to as @ "the ugly T"; it's a useful delmiter, but few seem to be happy @ with the particular choice of glyph.) @ @ --Ken Pizzini me personally i prefer the at sign. -- RST;G! a?16 d? e*- h! r++ s: t tv++ b+++>++++ w--- x+ C++ D? DI+ E--- G K+++ L++>+++ M+>- o O? P+ PE PGP-- PS+++ UL++++ V-- W- X- Y?;beka.thomas@yahoo_com ___________________/____\/______/\/|/ /\ //\__//\//\_____\/// || // ///_/_/ / ///_/__// || // //____///_____/\/// || // ///\___\\ ///\____\// //|// //_/___ //\//_/___///|///_________///_______/\/_// |_//\_________\/\_______\/\_\/\_\/
Re: slrn - message-id generation with vim autocommand
Author: Ken Pizzini
Date: Sat, 25 Mar 2000 00:00
Date: Sat, 25 Mar 2000 00:00
22 lines
1682 bytes
1682 bytes
On 24 Mar 2000 20:33:53 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote: >I am inclined to use this format now: > > <YYYYmmddHHMM%sven@guckes.net> >Wasn't there some ISO thingie >for time representation, too? ISO 8601. Your timestamp above is almost conformant with this; just add a "T" between the dd and the HH and you comply. Another ISO 8601 format which is popular is to add a few specific delimiters between components: YYYY-mm-ddTHH:MM (e.g, 2000-03-24T14:26), though the timestamp is still unambiguious even without them. (BTW: I would personally increase the resolution down to at least seconds --- 20000324T142642 or 2000-03-24T14:26:42. Also BTW: the "T" in the 8601 standard is often referred to as "the ugly T"; it's a useful delmiter, but few seem to be happy with the particular choice of glyph.) --Ken Pizzini
Re: slrn - message-id generation with vim autocommand
Author: Thomas Schultz
Date: Sat, 25 Mar 2000 00:00
Date: Sat, 25 Mar 2000 00:00
13 lines
1372 bytes
1372 bytes
On 25 March 2000, RST <beka_thomas@p10-term5-indy.netdirect.net> wrote: > Ken Pizzini <ken@halcyon.com> wrote: >> BTW: the "T" in the 8601 standard is often referred to as "the ugly >> T"; it's a useful delmiter, but few seem to be happy with the >> particular choice of glyph.) > me personally i prefer the at sign. This is not an option in this case, as the syntax of Message-Ids prohibits multiple at signs. -- Thomas Schultz <tststs@gmx.de>
Re: slrn and vim - message-id generation vs ISO8061
Author: Sylvan Butler
Date: Thu, 30 Mar 2000 00:00
Date: Thu, 30 Mar 2000 00:00
36 lines
2282 bytes
2282 bytes
On 30 Mar 2000 02:30:47 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>* Ken Pizzini <ken@halcyon.com>:
>> ISO 8601. Your timestamp above is almost conformant with this;
>> just add a "T" between the dd and the HH and you comply.
That's required.
>> Another ISO 8601 format which is popular is to add a few
>> specific delimiters between components: YYYY-mm-ddTHH:MM
>> (e.g, 2000-03-24T14:26)
That's optional.
>Thanks! I have changed the format to just that now:
> Message-ID: <2000-03-30T03:30:30@guckes.net>
>I wish I could say that my quest has ended.
>However, I my newsserver (news.fu-berlin.de)
>rejects Message-IDs with colons inside it.
>What now? How can I be ISO8061 compliant?
Just leave out the hyphens and colons. They aren't required.
You might want to check:
http://www.cl.cam.ac.uk/~mgk25/
and look on the page for '8601' (also 'ISO').
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and vim - message-id generation vs ISO8061
Author: Sven Guckes
Date: Thu, 30 Mar 2000 00:00
Date: Thu, 30 Mar 2000 00:00
23 lines
1752 bytes
1752 bytes
* Ken Pizzini <ken@halcyon.com>:
> >I am inclined to use this format now:
> > <YYYYmmddHHMM%sven@guckes.net>
> >Wasn't there some ISO thingie
> >for time representation, too?
> ISO 8601. Your timestamp above is almost conformant with this;
> just add a "T" between the dd and the HH and you comply.
> Another ISO 8601 format which is popular is to add a few
> specific delimiters between components: YYYY-mm-ddTHH:MM
> (e.g, 2000-03-24T14:26)
Thanks! I have changed the format to just that now:
Message-ID: <2000-03-30T03:30:30@guckes.net>
I wish I could say that my quest has ended.
However, I my newsserver (news.fu-berlin.de)
rejects Message-IDs with colons inside it.
What now? How can I be ISO8061 compliant?
Sven [now posting with "HH-MM-SS" instead of "HH:MM:SS"]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads