Article View: news.software.readers
Article #62933Re: slrn - few questions
From: Juha Sahakangas
Date: Mon, 03 Jul 2000 00:00
Date: Mon, 03 Jul 2000 00:00
64 lines
3157 bytes
3157 bytes
On Mon, 03 Jul 2000 08:32:30 GMT, Goran <goran@orange.net> wrote:
>2. slrn has subject_search_forward and subject_search_backward functions
> but using them is somewhat awkward IMHO. Is there anything like
> subject_search_forward_next or something similar ?
I wrote this small macro ... maybe it's something like the function you are
looking? And everyone, comments and corrections are welcome, it's the first
one so it may have bugs or other oddities at the moment.
-clip-
%start
define subject_search_forward_next ()
{
variable search_string;
variable rsp;
search_string = read_mini("Subject Search Forward","","");
if (search_string == "")
return;
set_input_string (search_string);
call ("subject_search_forward");
update ();
forever
{
message_now ("Press RET to continue searching.");
rsp = getkey ();
!if (rsp == 13)
return;
%I stole message and key from jed, but they can of course be easily
%changed to n, N or F3 (winblows-software tends to use this a lot),
%or whatever.
set_input_string (search_string);
call ("subject_search_forward");
update ();
}
}
%end
definekey ("subject_search_forward_next", "s", "article");
%put here any key you want, this should work exactly like the original
%subject search, except it doesn't terminate itself after the first hit so
%you can replace the original if you want (i think the key must not be
%defined in .slrnrc in order for this to work), or use a different key.
-clip-
I've also been trying to implement way to attach binaries from slrn "menus",
works fine as a filter by modifying ispell.sl from slrn, except that if
I'm using signature, the attachment comes after it, which is of course not
what I want. I could disable signatures for binary groups, but are there
other not-so-hard alternatives?
Also, I've been working on a macro that would catch up all the messages in
the group, then search for a word in a subject and undelete those messages,
and after that, expunge the rest... I managed to get it working somehow, but
there are problems ... if first message in a header list contains the search
prase, it doesn't get undeleted (because subject_search_forward doesn't find
the subject of selected message, and first message is selected when
header_bob is done).
Technical Details
Message-ID:
<slrn8m0v7a.1f8.juhasa@netti.rootpass.net>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:
<slrn8m0k2g.j5r.goran@europa1.hermes.si>Show Full Headers
Complete Article Headers
Message-ID: <slrn8m0v7a.1f8.juhasa@netti.rootpass.net> Subject: Re: slrn - few questions Date: Mon, 03 Jul 2000 00:00:00 +0000 From: juhasa@hotmail.com (Juha Sahakangas) References: <slrn8m0k2g.j5r.goran@europa1.hermes.si> 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: 641789050 X-Complaints-To: helpdesk@kpnqwest.fi X-Trace: news.kpnqwest.fi 962624747 194.137.25.99 (Mon, 03 Jul 2000 14:45:47 EET DST) Organization: KPNQwest Finland customer news service User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: Mon, 03 Jul 2000 14:45:47 EET DST Newsgroups: news.software.readers