Article View: news.software.readers
Article #20829Re: slrn bugs
From: John E. Davis
Date: Tue, 23 Apr 1996 00:00
Date: Tue, 23 Apr 1996 00:00
40 lines
2159 bytes
2159 bytes
On 23 Apr 1996 18:17:16 GMT, Heikki Kantola <hkantola@cc.Helsinki.FI>
wrote:
: Um, did you actually try that slrn setting at all? Slrn happens to
: always show the new groups appended to the beginning of the group list,
: the setting just controls whether the groups are subscribed or not by
: default. I think it's quite good behaviour although it would be perfect
: if slrn would understand AUTOSUBSCRIBE and AUTOUNSUBSCRIBE enviroment
: variables (comma-separated list of groupname regexps) like atleast tin
: 1.3 and [s]trn does. Or actually I would wish the AUTOUNSUBSCRIBE-envvar
: in combination of unsubscribe by default would hide the newsgroup
: hierarchies which I would never ever want to subscribe...
I was not aware of these variables but it is easy to implement. Is this the
correct implementation?
--- slrn.c~ Mon Apr 15 03:45:34 1996
+++ slrn.c Tue Apr 23 18:48:09 1996
@@ -476,7 +476,12 @@
#ifdef VMS
SLdefine_for_ifdef ("VMS");
#endif
-
+
+ if (NULL != getenv ("AUTOSUBSCRIBE"))
+ Slrn_Unsubscribe_New_Groups = 0;
+ if (NULL != getenv ("AUTOUNSUBSCRIBE"))
+ Slrn_Unsubscribe_New_Groups = 1;
+
for (i = 1; i < argc; i++)
{
if (!strcmp ("-create", argv[i])) create_flag = 1;
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Technical Details
Message-ID:
<slrn4nqnjq.1fd.davis@wiwaxia.mit.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:
<slrn4nfogg.2npg.gostl@argos.argoscomp.com> <slrn4ng5hf.nmb.davis@wiwaxia.mit.edu> <4lgaeu$nia@hpindda.cup.hp.com> <slrn44nq7iq.cpt.hkantola@vesuri.Helsinki.FI>Show Full Headers
Complete Article Headers
Message-ID: <slrn4nqnjq.1fd.davis@wiwaxia.mit.edu> Subject: Re: slrn bugs Date: Tue, 23 Apr 1996 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn4nfogg.2npg.gostl@argos.argoscomp.com> <slrn4ng5hf.nmb.davis@wiwaxia.mit.edu> <4lgaeu$nia@hpindda.cup.hp.com> <slrn44nq7iq.cpt.hkantola@vesuri.Helsinki.FI> 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: 151054442 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: news.software.readers