Article View: news.software.readers
Article #57100Re: [slrn] Defining own MsgIDs?
From: fvw
Date: Sun, 23 Jan 2000 00:00
Date: Sun, 23 Jan 2000 00:00
58 lines
2364 bytes
2364 bytes
In <slrn88jrki.1s6scv8.hynek.s@DialIN101.vr.in-berlin.de>, hynek.s@web.de wrote:
>Hi,
>
> I'm very new to slrn and I have a little problem, is it possible
>to set an MsgID? I always had MsgIDs like number@hys.in-berlin.de
>and used it for scoring (to make articles refering to my postings
>important) but now I have a MsgID that get all user of my ISP if
>they don't specify one themselves. I tried an "grep MsgID *" in the
>docs, but I didn't succeed...:-( Is there a possibility?
Do you use jed to edit your messages? You should. Here's what I use:
-------------------
[/home/fvw/.slang] cat msgid.sl
define add_header_if_nonexistant (x,y)
{
bob ();
re_fsearch ("^$");
!if(re_bsearch (sprintf("^%s: ",x,1)))
{
(insert(sprintf("%s: %s\n",x,y,2)));
}
}
define add_msgid()
{
() = random (-1, 0);
add_header_if_nonexistant("Message-ID",
Sprintf ("<%d%c%c%c.fvw@var.cx>",
_time(), random(0,26)+65, random(0,26)+65, random(0,26)+65, 4));
}
--------------------
In my .slrnrc I have:
set editor_command "j '%s' -g %d -tmp -l '~/.slang/msgid.sl' -f 'add_msgid'"
(j is a script that checks wether I'm in X and starts xjed/jed).
This automaticly inserts the messageid if it doesn't exist yet (it doesn't).
Works for me, as you see.
Btw, does anybody know how to attach a file easily with slrn (yes, I could
cat through uuencode and pipe into the post, but I was thinking REALLY easy
:-]).
--
Frank v Waveren
fvw@var.cx
ICQ# 10074100
Technical Details
Message-ID:
<948600204FRG.fvw@var.cx>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn88jrki.1s6scv8.hynek.s@DialIN101.vr.in-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <948600204FRG.fvw@var.cx> Subject: Re: [slrn] Defining own MsgIDs? Date: Sun, 23 Jan 2000 00:00:00 +0000 From: fvw+usenet@var.cx (fvw) References: <slrn88jrki.1s6scv8.hynek.s@DialIN101.vr.in-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 576379542 X-Complaints-To: abuse@chello.nl X-Trace: typhoon.chello.nl 948600353 213.46.5.8 (Sun, 23 Jan 2000 05:05:53 MET) Organization: None User-Agent: slrn/0.9.6.2 (Linux) Reply-To: fvw+usenet@var.cx NNTP-Posting-Date: Sun, 23 Jan 2000 05:05:53 MET Newsgroups: news.software.readers