Thread View: news.software.readers
7 messages
7 total messages
Started by Ganesh Thyagarajan
Sun, 28 May 2000 00:00
How to catch up with all groups in slrn?
Author: Ganesh Thyagarajan
Date: Sun, 28 May 2000 00:00
Date: Sun, 28 May 2000 00:00
9 lines
642 bytes
642 bytes
Hi everybody, Is there a way I can catch up with all subscribed groups? Thanks in advance, -Ganesh.
Re: How to catch up with all groups in slrn?
Author: Dawn Owens-Nicholson
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
52 lines
2599 bytes
2599 bytes
Ganesh Thyagarajan wrote:
> Is there a way I can catch up with all subscribed groups?
Yes, with a macro. The following macro will catchup all groups in the group
list. If you want to limit it to subscribed groups, you can either modify
the code or run the code as-is after limiting the display to only show
subscribed groups. Combining <slrn75llf3.a34.bluemoon@ux6.cso.uiuc.edu> and
<slrn75mvsd.bri.bluemoon@ux6.cso.uiuc.edu>, here's one way to do it:
implements ("Catchup_All_Groups");
static define catchup ()
{
!if (is_group_mode ()) return ();
variable
previous_newsgroup = "",
confirm_actions = get_variable_value ("confirm_actions"),
starting_newsgroup = current_newsgroup ();
if (starting_newsgroup == "") % nothing to do!
{
message ("No newsgroups listed!");
return ();
}
call ("bob");
do
{
previous_newsgroup = current_newsgroup ();
if (confirm_actions) set_input_chars ("y");
call ("catchup");
}
while (current_newsgroup () != previous_newsgroup);
while (current_newsgroup () != starting_newsgroup)
() = group_search (starting_newsgroup);
message ("All groups marked as read.");
}
Save the above code in a file where slrn will find it (check your slrn.rc
for "macro_directory" and put it in one of those directories, perhaps the
directory where the slrn executable is kept is good enough on Windows).
Call the file "catchup_all_groups.sl". Next, add this to your slrn.rc:
interpret "catchup_all_groups.sl"
setkey group Catchup_All_Groups->catchup "\eC"
Quit and/or restart slrn and ESC-C will mark all groups as read.
Re: How to catch up with all groups in slrn?
Author: Dawn Owens-Nicholson
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
56 lines
2675 bytes
2675 bytes
Ganesh Thyagarajan wrote:
> Is there a way I can catch up with all subscribed groups?
Yes, with a macro. The following macro will catchup all groups in the group
list. If you want to limit it to subscribed groups, you can either modify
the code or run the code as-is after limiting the display to only show
subscribed groups. Combining <slrn75llf3.a34.bluemoon@ux6.cso.uiuc.edu> and
<slrn75mvsd.bri.bluemoon@ux6.cso.uiuc.edu>, here's one way to do it:
#v+
implements ("Catchup_All_Groups");
static define catchup ()
{
!if (is_group_mode ()) return ();
variable
previous_newsgroup = "",
confirm_actions = get_variable_value ("confirm_actions"),
starting_newsgroup = current_newsgroup ();
if (starting_newsgroup == "") % nothing to do!
{
message ("No newsgroups listed!");
return ();
}
call ("bob");
do
{
previous_newsgroup = current_newsgroup ();
if (confirm_actions) set_input_chars ("y");
call ("catchup");
}
while (current_newsgroup () != previous_newsgroup);
while (current_newsgroup () != starting_newsgroup)
() = group_search (starting_newsgroup);
message ("All groups marked as read.");
}
#v-
Save the above code in a file where slrn will find it (check your slrn.rc
for "macro_directory" and put it in one of those directories, perhaps the
directory where the slrn executable is kept is good enough on Windows).
Call the file "catchup_all_groups.sl". Next, add this to your slrn.rc:
#v+
interpret "catchup_all_groups.sl"
setkey group Catchup_All_Groups->catchup "\eC"
#v-
Quit and/or restart slrn and ESC-C will mark all groups as read.
Re: How to catch up with all groups in slrn?
Author: Bit Twister
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
19 lines
1442 bytes
1442 bytes
Do not tell anyone this secret. If you hit the ? in slrn it gives you commands. :) If I want to catch up on a group I hit C and Y If I am in the group I have to hit Q then C then Y On Sun, 28 May 2000 12:06:49 -0400, Ganesh Thyagarajan > <Ganesh@tibia.hsc.wvu.edu> wrote: >Hi everybody, >Is there a way I can catch up with all subscribed groups? -- The warranty and liability expired as you read the message. If the above breaks your system, it's yours and you keep both pieces. Practice safe computing. Backup the file before you change it. Do a, man every_command_here, before doing anything or running a script.
Re: How to catch up with all groups in slrn?
Author: Renaud Colinet
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
12 lines
1135 bytes
1135 bytes
On Mon, May 29 2000 17:32:17 GMT, Dawn Owens-Nicholson wrote: > > while (current_newsgroup () != starting_newsgroup) > () = group_search (starting_newsgroup); > Just curious: is the "while" loop necessary? The macro seems to work fine without it. -- Renaud
Re: How to catch up with all groups in slrn?
Author: Dawn Owens-Nicholson
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
14 lines
1617 bytes
1617 bytes
Renaud Colinet wrote: > Just curious: is the "while" loop necessary? > The macro seems to work fine without it. Because group_search() will match group names or group descriptions. If you are looking for group x.y.z and there are multiple groups in the list where one of them is x.y.z and the others contain descriptions that contain "x.y.z" group_search() will move the cursor to each of them in the order of the list starting from the cursor's position. This code snippet depends on the target group being in the group list, otherwise an endless while loop will exist. I will consider modifying that loop to fix that problem when slrn becomes multithreaded. For now, leave the while loop as is.
Re: How to catch up with all groups in slrn?
Author: Dawn Owens-Nicholson
Date: Mon, 19 Jun 2000 00:00
Date: Mon, 19 Jun 2000 00:00
20 lines
1670 bytes
1670 bytes
Renaud Colinet wrote:
> Just curious: is the "while" loop necessary?
> The macro seems to work fine without it.
I replied:
> Because group_search() will match group names or group descriptions.
It's not the only way to do this same task; there is more than one way to do
this. One could also:
set_input_string ("name.of.group");
call ("add_group");
and slrn will move the cursor to that group. Of course one must know that
the desired group is actually in the visible list or else one will be adding
the group to the list. But like I said before the while loop works fine. If
you want something (only slightly, in most cases) faster, feel free to
substitute the set_input_string()/call() combo.
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