Article View: news.software.readers
Article #61950Re: How to catch up with all groups in slrn?
From: 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.
Technical Details
Message-ID:
<slrn8j5ads.fou.bluemoon@ux6.cso.uiuc.edu>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:
<slrn48j2gg6.1b8.Ganesh@tibia.hsc.wvu.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn8j5ads.fou.bluemoon@ux6.cso.uiuc.edu> Subject: Re: How to catch up with all groups in slrn? Date: Mon, 29 May 2000 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn48j2gg6.1b8.Ganesh@tibia.hsc.wvu.edu> 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: 628676815 Supersedes: <slrn8j5aba.fou.bluemoon@ux6.cso.uiuc.edu> X-Complaints-To: abuse@uiuc.edu X-Trace: vixen.cso.uiuc.edu 959621537 128.174.5.9 (Mon, 29 May 2000 12:32:17 CDT) Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.6.2 (HP-UX) NNTP-Posting-Date: Mon, 29 May 2000 12:32:17 CDT Newsgroups: news.software.readers