🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #6626

Re: Tin default subscriptions??

#6626
From: Gioacchino La Vecchia
Date: Tue, 23 Nov 1993 11:52
31 lines
1512 bytes
We, at Pisa University, Computer Science Dept., Virgilio project, have already
studied this problem.
The simplest way, we have found is the following:
 

void 
write_newsrc ()
{
	FILE *fp;
	register int i;

	if ((fp = fopen (newsrc, "w")) == (FILE *) 0) {
		return;
	}

	wait_message (txt_creating_newsrc);

	for (i=0 ; i < num_active ; i++) {
		fprintf (fp, "%s!\n", active[i].name);
				^
				|
				------  This means that the first time users
					run tin, the .newsrc file will have
					every group unsubscribed.
	}

	fclose (fp);
}

				Gioacchino La Vecchia
Technical Details
Message-ID: <2cstih$9hn@serra.unipi.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!caen!batcomputer!ghost.dsi.unimi.it!serra.unipi.it!virgilio!gio
References: <2cgl50$762@apollo.it.luc.edu> <2cpvkk$1p0@netserver.univ-lille1.fr> <CGw6E0.E11@bbc.co.uk> <2cqij0$7lq@aurora.engr.latech.edu> <2cr0h5$oim@quad.wfunet.wfu.edu> <2cr3jn$7lq@aurora.engr.latech.edu>

Show Full Headers
Complete Article Headers
Message-ID: <2cstih$9hn@serra.unipi.it>
Subject: Re: Tin default subscriptions??
Date: Tue, 23 Nov 1993 11:52:49 +0000
From: gio@virgilio (Gioacchino La Vecchia)
References: <2cgl50$762@apollo.it.luc.edu> <2cpvkk$1p0@netserver.univ-lille1.fr> <CGw6E0.E11@bbc.co.uk> <2cqij0$7lq@aurora.engr.latech.edu> <2cr0h5$oim@quad.wfunet.wfu.edu> <2cr3jn$7lq@aurora.engr.latech.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!caen!batcomputer!ghost.dsi.unimi.it!serra.unipi.it!virgilio!gio
Newsgroups: news.software.readers
Organization: Universita' di Pisa
Lines: 31
Distribution: world
NNTP-Posting-Host: virgilio.di.unipi.it
X-Newsreader: TIN [version 1.2 PL2]