🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Jim Cusick Thu, 18 Nov 1993 20:15
Tin default subscriptions??
#6580
Author: Jim Cusick
Date: Thu, 18 Nov 1993 20:15
16 lines
1178 bytes
Hi.
I recently upgraded tin to 1.2pl2 to take advantage of NOV on our INN 1.4
server.  Now it seems new users are subscribed to ALL news groups by default.
This does not in any way affect users who had used the old tin.  Is there
a default subscriptions file that I am missing?  Does the lack of that files
existence cause it subscribe to all groups?  Any ideas would be most helpful.

Thanks.
jim


--

Jim Cusick
Loyola University Chicago    
JCUSICK@MAIL.LUC.EDU 
Re: Tin default subscriptions??
#6604
Author: Dominique Marant
Date: Mon, 22 Nov 1993 09:09
16 lines
1482 bytes
Jim Cusick (jcusick@orion.it.luc.edu) wrote:
: Hi.
: I recently upgraded tin to 1.2pl2 to take advantage of NOV on our INN 1.4
: server.  Now it seems new users are subscribed to ALL news groups by default.
: This does not in any way affect users who had used the old tin.  Is there
: a default subscriptions file that I am missing?  Does the lack of that files
: existence cause it subscribe to all groups?  Any ideas would be most helpful.

It's really a problem.
I have already informed of this one in this newsgroup but I have no received
answer.
So, if anyone has the answer, thank you to post it !


--
Dominique Marant   -   marant@univ-lille1.fr 
Re: Tin default subscriptions??
#6606
Author: Rob May
Date: Mon, 22 Nov 1993 11:53
26 lines
2040 bytes
: : server.  Now it seems new users are subscribed to ALL news groups by default.
: : This does not in any way affect users who had used the old tin.  Is there
: : a default subscriptions file that I am missing?  Does the lack of that files

I include a small section from the tin man page :

     A user starting tin for the first time can be  automatically
     subscribed   to   a  list  of  newsgroups  that  are  deemed
     appropriate by the  news  administrator.  At  our  site  the
     subscriptions  file has 125 groups (our active file contains
     over 400 groups with many only being marginally  interesting
     to  most  people).  The subscriptions file should be created
     in      your      news       lib       directory       (i.e.
     /usr/lib/news/subscriptions)    and    should    have   file
     permissions set to 0644. If reading news via  NNTP  my  LIST
     SUBSCRIPTIONS  patch  will have to have been applied to your
     NNTP server.


Rob
:-)

---------------------------------------------------------------------------
--- Robert May. e-mail: robert.may@rd.eng.bbc.co.uk Tel: +44 737 832361 ---
-- You may post,  repost or publish *ANY* communication received from me --
---------------------------------------------------------------------------
Re: Tin default subscriptions??
#6607
Author: Dominique Marant
Date: Mon, 22 Nov 1993 13:21
18 lines
1556 bytes
Rob May (may@rd.eng.bbc.co.uk) wrote:

: I include a small section from the tin man page :

:      permissions set to 0644. If reading news via  NNTP  my  LIST
:      SUBSCRIPTIONS  patch  will have to have been applied to your
:      NNTP server.

If I have to apply your patch, why don't you put this patch on the
tin archive ? (My news server is a INN1.4).

Without this patch, it would better that, by default, all the 
groups are unsubscribed. Here, we have more than 2000 newsgroups on the 
news server and it's difficult to explain them how to proceed the first time
to avoid to be susbscribed to all groups.

--
Dominique Marant   -   marant@univ-lille1.fr 
Re: Tin default subscriptions??
#6609
Author: Daniel Len Schales
Date: Mon, 22 Nov 1993 14:33
17 lines
1439 bytes
On Mon, 22 Nov 1993 11:53:59 GMT, Rob May (may@rd.eng.bbc.co.uk) wrote:
[some portions of tin manual page deleted]

>      permissions set to 0644. If reading news via  NNTP  my  LIST
>      SUBSCRIPTIONS  patch  will have to have been applied to your
>      NNTP server.


adding support for the LIST SUBSCRIPTIONS to INN's nnrpd is trivial.
Just look in nnrpd/commands.c and duplicate one of the other LIST
subfunctions and change it to use a subscriptions file instead (
i.e. add another LISTINFO and a clause in the else-if structure.

You probably also want to add subscriptions to the list entry in
the CMDtable in nnrpd.c.

Danny
Re: Tin default subscriptions??
#6610
Author: Noel Hunter
Date: Mon, 22 Nov 1993 18:31
40 lines
2217 bytes
Daniel Len Schales (dan@engr.latech.edu) wrote:
: On Mon, 22 Nov 1993 11:53:59 GMT, Rob May (may@rd.eng.bbc.co.uk) wrote:
: [some portions of tin manual page deleted]

: >      permissions set to 0644. If reading news via  NNTP  my  LIST
: >      SUBSCRIPTIONS  patch  will have to have been applied to your
: >      NNTP server.


: adding support for the LIST SUBSCRIPTIONS to INN's nnrpd is trivial.
: Just look in nnrpd/commands.c and duplicate one of the other LIST
: subfunctions and change it to use a subscriptions file instead (
: i.e. add another LISTINFO and a clause in the else-if structure.

: You probably also want to add subscriptions to the list entry in
: the CMDtable in nnrpd.c.

Any chance of posting diffs to do this?

Another solution which we have implemented is to replace tin with a simple
shell script (see below).  Our script checks for a .newsrc file, and if
none exists, it copies a default one.  The it runs tin.  An unrelated feature 
is the display of a disclaimer message:

#!/bin/sh
clear
cat /usr/local/lib/tin/NOTICE
read TEMP
if [ -n "$TEMP" ]
then
   exit
fi
if [ !  -r $HOME/.newsrc ]; then
  cp /usr/local/lib/tin/newsrc $HOME/.newsrc
  chown `whoami` $HOME/.newsrc
fi
exec /usr/local/lib/tin/tin $*

* Noel Hunter,  Academic Systems Administrator,    Wake Forest University  *
* noel@wfu.edu TEL:(919) 759-5812 MAIL:PO Box 7408 Winston-Salem, NC 27109 *
Re: Tin default subscriptions??
#6611
Author: Daniel Len Schales
Date: Mon, 22 Nov 1993 19:23
31 lines
1780 bytes
On 22 Nov 1993 18:31:01 GMT, Noel Hunter (noel@ac.wfu.edu) wrote:

> Any chance of posting diffs to do this?

Well, I've done some other tinkering in there, so a patch would be
a bit difficult, but the following should get you going:

add this to command.c with the other LISTINFO's at the top:

STATIC LISTINFO         INFOsubscrib = {
    "/usr/local/news/subscriptions", "initial subscriptions",
        "list of initial subscriptions in form \"group\""
};

Changing the path to point to your subscriptions file (should be
done with subst, but...)

Then in the function CMDlist, edit the if-else-if structure to add:

else if (caseEQ(p, "subscriptions"))
        lp = &INFOsubscrib;


Then edit nnrpd.c, and change the entry for list in the
CMDENT table to be:

{   "list",         CMDlist,        FALSE,  1,      2,
        "[active|newsgroups|distributions|schema|subscriptions]" },


Danny
Re: Tin default subscriptions??
#6626
Author: 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
Re: Tin default subscriptions??
#6631
Author: Gioacchino La Vecchia
Date: Tue, 23 Nov 1993 12:01
8 lines
1087 bytes
Gioacchino La Vecchia (gio@virgilio) wrote:

: The simplest way, we have found is the following:
:  

	The file name to modify is newsrc.c.

					Gioacchino
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