Article View: news.software.readers
Article #44268Re: Automatically (un)subscribing from/to newsgroups
From: Dawn Owens-Nicholson
Date: Wed, 04 Nov 1998 00:00
Date: Wed, 04 Nov 1998 00:00
45 lines
2291 bytes
2291 bytes
Jan Hlavacek wrote:
> How about a "new_group_hook"? It would get the name of the group as an
> argument, and return -1 to automatically unsubscribe, 1 to subscribe,
> and 0 to unsubscribe but show.
I'd much rather have a way to specify what to hide and run a hide function.
I don't think it's wise to make the hiding-group functionality only good
with new newsgroups.
Also, a new_group_hook isn't really needed because new newsgroups are added
once at the top of the group list. All you need to do is test the top
newsgroup when you start slrn (slrn no longer adds new newsgroups when
checking for new news).
define new_group_hook_substitute ()
{
variable starting_group = current_newsgroup ();
call ("bob");
if (get_group_flags () & GROUP_NEW_GROUP_FLAG)
{
% there is at least one new newsgroup
}
else
{
% there are no new newsgroups
}
while (current_newsgroup () != starting_group)
() = group_search (starting_group);
}
define group_mode_startup_hook ()
{
.
.
new_group_hook_substitute ();
.
.
}
(So long as you don't hide or remove the group you started on, the while()
will work fine).
Technical Details
Message-ID:
<slrn7417cj.fko.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:
<slrn73j1ik.mh1.alfie@skater.htu.tuwien.ac.at> <slrn73jbpd.8hl.hezu@tuuri.ling.helsinki.fi> <slrn73kce6.3dm.nospam+_no_Zs__9810@hpb13799.zboi.hpz.com> <slrn73kf70.5pv.bluemoon@ux6.cso.uiuc.edu> <slrn73r90f.1q2.hezu@tuuri.ling.helsinki.fi> <slrn73s1gp.3sg.bluemoon@ux6.cso.uiuc.edu> <slrn73tll0.8r6.hezu@tuuri.ling.helsinki.fi> <slrn73uroc.6m.bluemoon@ux6.cso.uiuc.edu> <slrn73v67q.58f.lahvak@octagon.mps.ohio-state.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn7417cj.fko.bluemoon@ux6.cso.uiuc.edu> Subject: Re: Automatically (un)subscribing from/to newsgroups Date: Wed, 04 Nov 1998 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn73j1ik.mh1.alfie@skater.htu.tuwien.ac.at> <slrn73jbpd.8hl.hezu@tuuri.ling.helsinki.fi> <slrn73kce6.3dm.nospam+_no_Zs__9810@hpb13799.zboi.hpz.com> <slrn73kf70.5pv.bluemoon@ux6.cso.uiuc.edu> <slrn73r90f.1q2.hezu@tuuri.ling.helsinki.fi> <slrn73s1gp.3sg.bluemoon@ux6.cso.uiuc.edu> <slrn73tll0.8r6.hezu@tuuri.ling.helsinki.fi> <slrn73uroc.6m.bluemoon@ux6.cso.uiuc.edu> <slrn73v67q.58f.lahvak@octagon.mps.ohio-state.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: 408375943 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.3 (UNIX) Newsgroups: news.software.readers