🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
27 messages
27 total messages Started by Iain Lea Tue, 25 May 1993 07:18
ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4240
Author: Iain Lea
Date: Tue, 25 May 1993 07:18
88 lines
4761 bytes
I have posted TIN v1.2 PL0 to alt.sources in a 14 part shell archive. 

This is the first release that has built-in NOV & XOVER support.

A compressed tar file of this release will be uploaded to the FTP
site ftp.germany.eu.net:/pub/news/tin in a few days.

-------------------------------------------------------------------------------

This is version 1.2 PL0 (patchlevel 0) of the tin newsreader.

o  Compiles & runs on Unix & AmigaDOS.
o  Based more on Notes and tass than rn type newreaders.
o  Full screen, easy to use with on-line help at all levels.
o  Reads news locally (ie. /usr/spool/news) and/or via NNTP/INN/CD-ROM.
o  Supports the XOVER news overview index file standard.
o  Threads on Subject: and/or Archive-name: mail headers.
o  Five different operating levels:
   -  Spooldir selection level (CD-ROM only)
   -  Group selection level
   -  Thread selection level
   -  Article selection level
   -  Article viewer
o  Same interface to mail, pipe, print and save articles.
o  Auto unpacking of multi-part shar & uuencoded articles.
o  Killing and auto-selection (hot) of articles.
o  History of user posted articles.
o  Reposting of articles from one newsgroup to another.
o  Batch mode to mail/save new news when user is on holiday.
o  Random signature generator on a per newsgroup basis.
o  Builtin NNTP mini-inews & clientlib.c
o  NNTP extensions XINDEX, XMOTD & XUSER to allow better admin.

-------------------------------------------------------------------------------

Major improvements over tin 1.1 PL9 are the following:

o  Added more support for AmigaDOS machines.
o  Added more support for Coherent machines.
o  Added more support for Linux machines.
o  Added more support for SCO Unix machines.
o  Added support for NOV & XOVER index standard.
o  Added Lines: info to article viewer level.
o  Added HACKERS document describing internal conventions.
o  Added secondary sort to subject and from field sorting routines.
o  Changed bug report address (hence the v1.2 PL0).
o  Changed TAB command at article viewer level to goto next unread article.
o  Changed nntp response text to be used if more informative than canned text.
o  Fixed 'a' command that caused SIGSEGV if article no longer existed.
o  Fixed 'f' command that caused SIGSEGV if article had no author name.
o  Fixed xmotd that was not detecting changes to motd file.
o  Fixed truncation of articles when using builtin nntp inews.
o  Fixed threading of one article that was being added to more than one thread.
o  Fixed overwriting of References: line.
o  Fixed match_string() that was overwriting last char if last char was not LF.
o  Fixed incorrect mini help menu text at article viewer level.
o  Fixed PgUp & PgDn keys on RS/6000 machines.

-------------------------------------------------------------------------------

For more bug fixes, changes & additions read the CHANGES & TODO files.

For compilation and installation information read the INSTALL file.

For info. about my NNTP patches read the README.NNTP & INSTALL.NNTP files.

For ftp & non-ftp source & binary availability read the FTP file.

-------------------------------------------------------------------------------

I wish to thank all the people that sent me bug fixes and comments
(especially Owen Medd). I still  want to hear of any bug reports,
gripes and comments but *PLEASE* read the INSTALL, TODO and tin.1 
manual page before doing anything :-)!.

Also please make sure you have the newest release of tin before
reporting any  problems to me.  My time is limited  and I don't
want to have to backtrack to assist with an old problem when it 
may have already been fixed in the newest release.

I read & reply to questions that are posted to news.software.readers

Enjoy
	Iain 

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4249
Author: Alan Thew
Date: Tue, 25 May 1993 12:32
6 lines
925 bytes
I see no evidence of tin being able to handle cross-posts which was one of the
things promised for 1.2 (??)
-- 
Alan Thew
alan.thew@liverpool.ac.uk   ...!uknet!liv!alan.thew   +44 51 794 3735
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4245
Author: Iain Lea
Date: Tue, 25 May 1993 15:36
15 lines
1351 bytes
Alan Thew (qq11@liverpool.ac.uk) wrote:
:
: I see no evidence of tin being able to handle cross-posts which was one of the
: things promised for 1.2 (??)

It will be in v2.0. There was simply too much to change in v1.X to make it 
worth while.  It would have also been a bag on the side job.  I have Xref:
working in a very flaky  version of v2.0 (its about the only thing that is
working :()

Iain

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4255
Author: Jason 'Think!' Steiner
Date: Tue, 25 May 1993 21:32
26 lines
2122 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) writes:
> I have posted TIN v1.2 PL0 to alt.sources in a 14 part shell 
> archive. 
>
> Major improvements over tin 1.1 PL9 are the following:
>
> o  Changed TAB command at article viewer level to goto next unread article.

i hope this isn't what i think it is... i usually read news just by
hitting the tab key. if i'm not at the end of an article it goes to the
next page of the article & if i'm at the end it goes to the next unread
article. does this mean that it will now go to the next unread article
& i'll have to alternate between space & tab? the 'k' key already lets
me skip any articles i don't want to read.

what do we need to change to make the TAB key work like 1.1PL9?

jason

--
`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
`,` "A democracy cannot exist as a permanent form of government. It can `,`
`,`  only exist until a majority of voters discover that they can vote  `,`
`,`  themselves largess out of the public treasury" - Alexander Tyler   `,`
`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,` steiner@jupiter.cse.utoledo.edu `,`,`,`
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4256
Author: Pope Clifton
Date: Wed, 26 May 1993 03:16
64 lines
3067 bytes
Jason 'Think!' Steiner (steiner@jupiter.cse.utoledo.edu) wrote:
: Iain Lea (iain.lea@anl433.erlm.siemens.de) writes:
: >
: > Major improvements over tin 1.1 PL9 are the following:
: >
: > o  Changed TAB command at article viewer level to goto next unread article.

: what do we need to change to make the TAB key work like 1.1PL9?

OH BOY!  My first TIN patch (totally trivial.)  This just changes the default
behavior back to the Tab behavior of 1.1PL9 and before.

Either way, after the first time it starts up, the setting here will be
overridden by the value in the tinrc file:

tab_goto_next_unread=OFF	# (old behavior of tab key)
# tab_goto_next_unread=ON	# (new behavior of tab key)

  -- Clifton

 ===============================================

*** my/init.c	Tue May 25 20:04:04 1993
--- orig/init.c	Tue May 25 20:03:26 1993
***************
*** 144,150 ****
  int spooldir_is_active;		/* set TRUE if current spooldir is active news feed */
  int system_status;
  int tab_after_X_selection;	/* set TRUE if you want auto TAB after X */
! int tab_goto_next_unread;	/* set TRUE for TAB to skip rest of this msg to next */
  int update;			/* update index files only mode */
  int use_builtin_inews;
  
--- 144,150 ----
  int spooldir_is_active;		/* set TRUE if current spooldir is active news feed */
  int system_status;
  int tab_after_X_selection;	/* set TRUE if you want auto TAB after X */
! int tab_goto_next_unread;
  int update;			/* update index files only mode */
  int use_builtin_inews;
  
***************
*** 289,295 ****
  	start_editor_offset = TRUE;
  #endif
  	tab_after_X_selection = FALSE;
! 	tab_goto_next_unread = FALSE;
  #ifdef INDEX_DAEMON
  	check_for_new_newsgroups = FALSE;
  	update = TRUE;
--- 289,295 ----
  	start_editor_offset = TRUE;
  #endif
  	tab_after_X_selection = FALSE;
! 	tab_goto_next_unread = TRUE;
  #ifdef INDEX_DAEMON
  	check_for_new_newsgroups = FALSE;
  	update = TRUE;

--
cliftonr@netcom.com     Home: +1 808 521 9073  Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
"Well now I don't know about that.  I'm a skeptic." -- John_-_Winston
Tin v1.2 PL0 newsreader Bug List
#4281
Author: Pope Clifton
Date: Thu, 27 May 1993 23:45
46 lines
2979 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:
: I have posted TIN v1.2 PL0 to alt.sources in a 14 part shell archive. 
..
: I still  want to hear of any bug reports,
: gripes and comments but *PLEASE* read the INSTALL, TODO and tin.1 
: manual page before doing anything :-)!.

: Also please make sure you have the newest release of tin before
: reporting any  problems to me.  My time is limited  and I don't
: want to have to backtrack to assist with an old problem when it 
: may have already been fixed in the newest release.

: I read & reply to questions that are posted to news.software.readers

There seem to be several threads starting up about bugs/fixes to Tin 1.2PL0.

To save Iain's time, and everybody's time, once you have confirmed a
specific bug and or fix, please post it via follow-up to this thread.

That way everyone can avoid wasting their time working on the same bug, and
we can avoid spamming the whole newsgroup for non-Tin users.  I'll start
off.

1) Running without a central index (not suid), configured for reading and
   posting via NFS, Tin exhibits the following bug:

   Enter a group using TAB or CR; read all messages, then hit Tab to proceed
to the next group.  When the "indexing nn/nn" message appears for this
group, hit "q", and answer "y" to the "abort indexing" prompt.  Tin will
immediately resume indexing the same group; no way to abort it short of a
Quit/Kill signal.  The bug actually applies to any configuration of tin, but
will be most noticeable with private indexes, because the indexing takes
longer that way.  I should have a fix for this later today, and will be
mailing it to Iain.  (I could also post it here if there is interest.)

2) On Sun OS, without a central index (not suid), configured for reading and
   posting via NFS, using the internal mini Inews, the bug preventing the
   poster from cancelling their own messages has returned. I haven't
   researched this one yet, because there's probably a known fix.

  -- Clifton

--
cliftonr@netcom.com     Home: +1 808 521 9073  Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
"Well now I don't know about that.  I'm a skeptic." -- John_-_Winston
Re: Tin v1.2 PL0 newsreader Bug List
#4282
Author: Charlie Davies
Date: Fri, 28 May 1993 01:57
14 lines
1294 bytes
Pope Clifton (cliftonr@netcom.com) wrote:
: To save Iain's time, and everybody's time, once you have confirmed a
: specific bug and or fix, please post it via follow-up to this thread.

  tind 1.20 (and 1.19) HP-UX 8.02 central indexing (suid) HP's cc

    After completing it's indexing work, tind calls
    free_active_arrays() which generates a SIGBUS.

    I haven't tracked the exact bug down yet, maybe someone
    else already has?

---
Charlie Davies : cdavies@qntm.com  -or- cdavies@tannen.com 
Re: Tin v1.2 PL0 newsreader Bug List
#4283
Author: Iain Lea
Date: Fri, 28 May 1993 09:06
19 lines
1548 bytes
Pope Clifton (cliftonr@netcom.com) wrote:
:
: There seem to be several threads starting up about bugs/fixes to Tin 1.2PL0.
:
: To save Iain's time, and everybody's time, once you have confirmed a
: specific bug and or fix, please post it via follow-up to this thread.

Good idea.  I will be issuing a patch within a week or two to fix the minor
problems that I have been informed about.  The one thing that is not minor
is the tin.h termio.h & curses.c problem that seems to be causing grief on
sysvr4 type systems.  I will probably revert to the v1.1 PL9 include files
structure until I can research the problem further.

I have also received patches for OSF/1 & EPIX support so don't work on them.

Iain

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4286
Author: Massimo Manghi
Date: Fri, 28 May 1993 09:40
14 lines
1453 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:

: It will be in v2.0. There was simply too much to change in v1.X to make it 
: worth while.  It would have also been a bag on the side job.  I have Xref:
: working in a very flaky  version of v2.0 (its about the only thing that is
: working :()

hi Iain, is it  possible to force tin to use a user specified editor?

 -- Massimo Manghi
-----------------------------------------------------
manghi@prfs02.bio.unipr.it
manghi@prfsio.bio.unipr.it
Re: Tin v1.2 PL0 newsreader Bug List
#4293
Author: David Vrona
Date: Fri, 28 May 1993 21:36
25 lines
1771 bytes
Here a fatal error I got when compiling tin 1.20 on Dell SVR4 v2.2.

Any suggestions would be appreciated.

Thanks,
dave

Compiling tin v1.20 for System V Release 4...
	gcc -c -O2 -DSVR4 -DNNTP_INEWS_GATEWAY=\"\" -DNNTP_INEWS_DOMAIN=\".lcu.com\" -DLIBDIR=\"/usr/local/news\" -DSPOOLDIR=\"/var/spool/news\" curses.c
curses.c: In function `Raw':
curses.c:575: invalid use of undefined type `struct termio'
curses.c:577: invalid use of undefined type `struct termio'
curses.c:578: invalid use of undefined type `struct termio'
curses.c: At top level:
curses.c:94: storage size of `_raw_tty' isn't known
curses.c:95: storage size of `_original_tty' isn't known
*** Error code 1 (bu21)

-- 
 David Vrona N9QNZ               +1 708 680 2829 (voice)               
 Hollister Incorporated          +1 708 918 3860 (fax)                 
 2000 Hollister Drive            Internet: dave@hp1.holl.com           
 Libertyville, IL  60048-3781    UUCP: {well connected}!ddsw1!hp1!dave 
 Opinions expressed are my own and not those of Hollister Incorporated.
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4297
Author: Tom J Parry
Date: Sat, 29 May 1993 00:23
13 lines
1555 bytes
Massimo Manghi (manghi@prfs02.bio.unipr.it) wrote:

> hi Iain, is it  possible to force tin to use a user specified editor?

If you set the VISUAL environment variable, it will use that as your
editor. Make sure you set the 'Editor offset' menu option accordingly. If
you editor understands 'editor +line filename' then set it on. If this
creates a file call '+line' (eg. pico) then turn that option off.

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Re: Tin v1.2 PL0 newsreader Bug List
#4298
Author: Tom J Parry
Date: Sat, 29 May 1993 00:30
25 lines
2222 bytes
Pope Clifton (cliftonr@netcom.com) wrote:
> 1) Running without a central index (not suid), configured for reading and
>    posting via NFS, Tin exhibits the following bug:

>    Enter a group using TAB or CR; read all messages, then hit Tab to proceed
> to the next group.  When the "indexing nn/nn" message appears for this
> group, hit "q", and answer "y" to the "abort indexing" prompt.  Tin will
> immediately resume indexing the same group; no way to abort it short of a
> Quit/Kill signal.  The bug actually applies to any configuration of tin, but
> will be most noticeable with private indexes, because the indexing takes
> longer that way.  I should have a fix for this later today, and will be
> mailing it to Iain.  (I could also post it here if there is interest.)

This happens in other situations too. If you solve it please post it.

I may fix the 'lost connection to nntp server' problem today. I leave Tin
running for ages at a time and when I resync the active file, I have lost
connection. I have fixed the read actived file function to do a reconnect,
but if you were reading an article, or doing something else at the time it
can still happen. I will move the reconnect further down and make sure it
gives up at some point this afternoon hopefully.

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4299
Author: Matt Simmons
Date: Sat, 29 May 1993 05:36
26 lines
2332 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: Massimo Manghi (manghi@prfs02.bio.unipr.it) wrote:
: > hi Iain, is it  possible to force tin to use a user specified editor?
: If you set the VISUAL environment variable, it will use that as your
: editor. Make sure you set the 'Editor offset' menu option accordingly. If
: you editor understands 'editor +line filename' then set it on. If this
: creates a file call '+line' (eg. pico) then turn that option off.
Sorry, but pico handles offsets just fine... In fact, I'm using it right
now...


: -- 
: Tom J Parry.
: Your reality is a figment of my imagination.

--
zarthac@cs1.bradley.edu  Illinois has two seasons:  Winter and Construction
___________   _______________________________________^___          
 ___   ___ |||  ___   ___   ___    ___ ___  |   __  ,----\    High Gamma
|   | |   |||| |   | |   | |   |  |   |   | |  |  | |_____\   Lambda 
|___| |___|||| |___| |___| |___|  | O | O | |  |  |        \   Chi Alpha 
           |||                    |___|___| |  |__|         )   Colony #099 
___________|||______________________________|______________/    Bradley Univ 
           ||| WDW Monorail Driver Wannabe            /-------- Peoria IL
-----------'''---------------------------------------'    Yours in ZAX
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4302
Author: Wuxu Peng
Date: Sat, 29 May 1993 06:10
8 lines
1116 bytes
After reading the files "README", "INSTALL", "README.NNTP" and etc,
I still got no clue as how to use "overview" from INN with Tin1.2.
Is Tin1.2 only working with NNTP-1.5.[?]  ?

--wuxu peng (peng@pirates.cs.swt.edu)

Re: Tin v1.2 PL0 newsreader Bug List
#4300
Author: Pope Clifton
Date: Sat, 29 May 1993 06:38
412 lines
12293 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: >    Enter a group using TAB or CR; read all messages, then hit Tab to proceed
: > to the next group.  When the "indexing nn/nn" message appears for this
: > group, hit "q", and answer "y" to the "abort indexing" prompt.  Tin will
: > immediately resume indexing the same group; no way to abort it short of a
: > Quit/Kill signal.  

: This happens in other situations too. If you solve it please post it.

Your wish is my command.  This fix includes a lot of changes, only because I
had to "document" some of the special values index_point takes on to
understand it.  The key change is that in select.c, setting index_point to
GRP_UNINDEXED (-1) should happen inside the loop which calls group_page, not
before the loop.

diff -rcs my/tin.h orig/tin.h
*** my/tin.h	Thu May 27 17:46:19 1993
--- orig/tin.h	Thu May 27 17:16:41 1993
***************
*** 544,559 ****
  #define		HEADER_NEWSGROUPS		2
  
  /*
-  *  index_point values used in group.c, select.c, and page.c
-  */
- 
- #define		GRP_UNINDEXED			-1 /* Stop reading group */
- #define		GRP_QUIT			-2 /* Set by 'Q' */
- #define		GRP_GOTONEXT			-3 /* Go to another group */
- #define		GRP_CONTINUE			-4 /* show_page sets this */
- #define		GRP_NOREDRAW			-5 /* Suppress redraw */
- 
- /*
   *  used in page.c & post.c
   */
  
--- 544,549 ----

diff -rcs my/select.c orig/select.c
*** my/select.c	Thu May 27 17:46:19 1993
--- orig/select.c	Thu May 27 17:17:32 1993
***************
*** 159,169 ****
  				if (active[n].min <= active[n].max) {
  					space_mode = pos_first_unread;
  					clear_message();
  					do {
- 						index_point = GRP_UNINDEXED;
  						n = my_group[cur_groupnum];
  						group_page (active[n].name);
! 					} while (index_point == GRP_GOTONEXT || index_point == GRP_CONTINUE);
  #ifndef DONT_REREAD_ACTIVE_FILE					
  					if (! reread_active_file)
  #endif
--- 159,169 ----
  				if (active[n].min <= active[n].max) {
  					space_mode = pos_first_unread;
  					clear_message();
+ 					index_point = -1;
  					do {
  						n = my_group[cur_groupnum];
  						group_page (active[n].name);
! 					} while (index_point == -3 || index_point == -4);
  #ifndef DONT_REREAD_ACTIVE_FILE					
  					if (! reread_active_file)
  #endif
***************
*** 1111,1120 ****
  
  	if (enter_group) {
  		clear_message ();
  		do {
- 			index_point = GRP_UNINDEXED;
  			group_page (active[my_group[cur_groupnum]].name);
! 		} while (index_point == GRP_GOTONEXT || index_point == GRP_CONTINUE);
  		group_selection_page ();
  	}
  }
--- 1111,1120 ----
  
  	if (enter_group) {
  		clear_message ();
+ 		index_point = -1;
  		do {
  			group_page (active[my_group[cur_groupnum]].name);
! 		} while (index_point == -3 || index_point == -4);
  		group_selection_page ();
  	}
  }

diff -rcs my/group.c orig/group.c
*** my/group.c	Thu May 27 17:46:20 1993
--- orig/group.c	Thu May 27 17:16:59 1993
***************
*** 212,223 ****
  					break;
  				}
  				index_point = show_page (this_resp, &dummy, group, group_path);
! 				if (index_point == GRP_NOREDRAW) {
  					index_point = which_thread (this_resp);
  					clear_message ();
  				} else {
  					if (index_point < 0) {
! 						space_mode = (index_point == GRP_CONTINUE);
  						goto group_done;
  					}
  					clear_note_area ();
--- 212,223 ----
  					break;
  				}
  				index_point = show_page (this_resp, &dummy, group, group_path);
! 				if (index_point == -5) {
  					index_point = which_thread (this_resp);
  					clear_message ();
  				} else {
  					if (index_point < 0) {
! 						space_mode = (index_point == -4);
  						goto group_done;
  					}
  					clear_note_area ();
***************
*** 264,275 ****
  				}
  				i = (int) base[index_point];
  				index_point = show_page (i, &dummy, group, group_path);
! 				if (index_point == GRP_NOREDRAW) {
  					index_point = which_thread (i);
  					clear_message ();
  				} else {
  					if (index_point < 0) {
! 						space_mode = (index_point == GRP_CONTINUE);
  						goto group_done;
  					}
  					clear_note_area ();
--- 264,275 ----
  				}
  				i = (int) base[index_point];
  				index_point = show_page (i, &dummy, group, group_path);
! 				if (index_point == -5) {
  					index_point = which_thread (i);
  					clear_message ();
  				} else {
  					if (index_point < 0) {
! 						space_mode = (index_point == -4);
  						goto group_done;
  					}
  					clear_note_area ();
***************
*** 295,305 ****
  						goto group_done;
  					}
  					cur_groupnum = i;
! 					index_point = GRP_GOTONEXT;
  					goto group_done;
  				}
  				index_point = show_page (n, &dummy, group, group_path);
! 				if (index_point == GRP_NOREDRAW) {
  					index_point = which_thread (n);
  					goto group_tab_pressed;	/* repeat TAB */
  				} else {
--- 295,305 ----
  						goto group_done;
  					}
  					cur_groupnum = i;
! 					index_point = -3;
  					goto group_done;
  				}
  				index_point = show_page (n, &dummy, group, group_path);
! 				if (index_point == -5) {
  					index_point = which_thread (n);
  					goto group_tab_pressed;	/* repeat TAB */
  				} else {
***************
*** 495,501 ****
  					break;
  
  				index_point = show_page (n, &dummy, group, group_path);
! 				if (index_point != GRP_NOREDRAW) {
  					if (index_point < 0) {
  						space_mode = FALSE;
  						goto group_done;
--- 495,501 ----
  					break;
  
  				index_point = show_page (n, &dummy, group, group_path);
! 				if (index_point != -5) {
  					if (index_point < 0) {
  						space_mode = FALSE;
  						goto group_done;
***************
*** 532,538 ****
  				n = choose_new_group ();
  				if (n >= 0 && n != cur_groupnum) {
  					cur_groupnum = n;
! 					index_point = GRP_GOTONEXT;
  					goto group_done;
  				}
  				break;
--- 532,538 ----
  				n = choose_new_group ();
  				if (n >= 0 && n != cur_groupnum) {
  					cur_groupnum = n;
! 					index_point = -3;
  					goto group_done;
  				}
  				break;
***************
*** 603,609 ****
  				}
   				space_mode = TRUE;
  				n = show_thread ((int) base[index_point], group, group_path);
! 				if (n == GRP_QUIT) {
  					index_point = n;
  					space_mode = FALSE;
  					goto group_done;
--- 603,609 ----
  				}
   				space_mode = TRUE;
  				n = show_thread ((int) base[index_point], group, group_path);
! 				if (n == -2) {
  					index_point = n;
  					space_mode = FALSE;
  					goto group_done;
***************
*** 647,653 ****
  					info_message (txt_no_more_groups);
  				else {
  					cur_groupnum++;
! 					index_point = GRP_GOTONEXT;
  					space_mode = pos_first_unread;
  					goto group_done;
  				}
--- 647,653 ----
  					info_message (txt_no_more_groups);
  				else {
  					cur_groupnum++;
! 					index_point = -3;
  					space_mode = pos_first_unread;
  					goto group_done;
  				}
***************
*** 664,670 ****
  					info_message (txt_no_next_unread_art);
  				else {
  					index_point = show_page (n, &dummy, group, group_path);
! 					if (index_point != GRP_NOREDRAW) {
  						if (index_point < 0) {
  							space_mode = pos_first_unread;
  							goto group_done;
--- 664,670 ----
  					info_message (txt_no_next_unread_art);
  				else {
  					index_point = show_page (n, &dummy, group, group_path);
! 					if (index_point != -5) {
  						if (index_point < 0) {
  							space_mode = pos_first_unread;
  							goto group_done;
***************
*** 688,694 ****
  					info_message(txt_no_prev_group);
  				else {
  					cur_groupnum--;
! 					index_point = GRP_GOTONEXT;
  					space_mode = pos_first_unread;
  					goto group_done;
  				}
--- 688,694 ----
  					info_message(txt_no_prev_group);
  				else {
  					cur_groupnum--;
! 					index_point = -3;
  					space_mode = pos_first_unread;
  					goto group_done;
  				}
***************
*** 705,711 ****
  				    info_message(txt_no_prev_unread_art);
  				else {
  					index_point = show_page (n, &dummy, group, group_path);
! 					if (index_point != GRP_NOREDRAW) {
  						if (index_point < 0) {
  							space_mode = pos_first_unread;
  							goto group_done;
--- 705,711 ----
  				    info_message(txt_no_prev_unread_art);
  				else {
  					index_point = show_page (n, &dummy, group, group_path);
! 					if (index_point != -5) {
  						if (index_point < 0) {
  							space_mode = pos_first_unread;
  							goto group_done;
***************
*** 721,727 ****
  				goto group_done;
  
  			case 'Q':		/* quit */
! 				index_point = GRP_QUIT;
  				space_mode = FALSE;
  				goto group_done;
  
--- 721,727 ----
  				goto group_done;
  
  			case 'Q':		/* quit */
! 				index_point = -2;
  				space_mode = FALSE;
  				goto group_done;
  
***************
*** 1049,1055 ****
  	fix_new_highest (sav_groupnum);
  	update_newsrc (group, my_group[sav_groupnum], FALSE);
  
! 	if (index_point == GRP_QUIT) {
  		write_rcfile ();
  		tin_done (0);
  	}	
--- 1049,1055 ----
  	fix_new_highest (sav_groupnum);
  	update_newsrc (group, my_group[sav_groupnum], FALSE);
  
! 	if (index_point == -2) {
  		write_rcfile ();
  		tin_done (0);
  	}	

diff -rcs my/page.c orig/page.c
*** my/page.c	Thu May 27 17:46:20 1993
--- orig/page.c	Thu May 27 17:32:28 1993
***************
*** 93,99 ****
  		} else {
  			wait_message (msg);
  		}
! 		return (GRP_NOREDRAW);	/* special retcode to stop redrawing screen */
  	} else {
  		show_note_page (respnum, group);
  	}
--- 93,99 ----
  		} else {
  			wait_message (msg);
  		}
! 		return (-5);	/* special retcode to stop redrawing screen */
  	} else {
  		show_note_page (respnum, group);
  	}
***************
*** 304,310 ****
  				}
  /*
  				if (which_thread (respnum) < 0) {
! 					return GRP_UNINDEXED;
  				}
  */
  				redraw_page (respnum, group);
--- 304,310 ----
  				}
  /*
  				if (which_thread (respnum) < 0) {
! 					return -1;
  				}
  */
  				redraw_page (respnum, group);
***************
*** 377,388 ****
  					for (n = 0; n < top; n++) {
  						arts[n].unread = ART_READ;
  					}
! 					ret_code = (ch == 'C' ? GRP_CONTINUE : GRP_UNINDEXED);
  					fix_new_highest (cur_groupnum);
  					if (cur_groupnum + 1 < group_top) {
  						cur_groupnum++;
  					} else {
! 						ret_code = GRP_UNINDEXED;
  					}
  					art_close ();
  					space_mode = TRUE;
--- 377,388 ----
  					for (n = 0; n < top; n++) {
  						arts[n].unread = ART_READ;
  					}
! 					ret_code = (ch == 'C' ? -4 : -1);
  					fix_new_highest (cur_groupnum);
  					if (cur_groupnum + 1 < group_top) {
  						cur_groupnum++;
  					} else {
! 						ret_code = -1;
  					}
  					art_close ();
  					space_mode = TRUE;
***************
*** 530,536 ****
  				break;
  
  			case 'Q':	/* quit */
! 				return GRP_QUIT;
  	
  			case 'r':	/* reply to author through mail */
  			case 'R':
--- 530,536 ----
  				break;
  
  			case 'Q':	/* quit */
! 				return -2;
  	
  			case 'r':	/* reply to author through mail */
  			case 'R':

--
cliftonr@netcom.com     Home: +1 808 521 9073  Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
"Well now I don't know about that.  I'm a skeptic." -- John_-_Winston
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4304
Author: Iain Lea
Date: Sat, 29 May 1993 14:49
10 lines
1092 bytes
Wuxu Peng (peng@hopper.cs.swt.edu) wrote:
:
: I still got no clue as how to use "overview" from INN with Tin1.2.

Tin just knows (a mystery that you'll just have to live with :)

Iain

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: Tin v1.2 PL0 newsreader Bug List
#4303
Author: Piotr Karpiesiuk
Date: Sat, 29 May 1993 18:12
72 lines
2697 bytes
David Vrona (dave@hp1.holl.com) wrote:

: Here a fatal error I got when compiling tin 1.20 on Dell SVR4 v2.2.

: Any suggestions would be appreciated.

: Thanks,
: dave

: Compiling tin v1.20 for System V Release 4...
: 	gcc -c -O2 -DSVR4 -DNNTP_INEWS_GATEWAY=\"\" -DNNTP_INEWS_DOMAIN=\".lcu.com\" -DLIBDIR=\"/usr/local/news\" -DSPOOLDIR=\"/var/spool/news\" curses.c
: curses.c: In function `Raw':
: curses.c:575: invalid use of undefined type `struct termio'
: curses.c:577: invalid use of undefined type `struct termio'
: curses.c:578: invalid use of undefined type `struct termio'
: curses.c: At top level:
: curses.c:94: storage size of `_raw_tty' isn't known
: curses.c:95: storage size of `_original_tty' isn't known
: *** Error code 1 (bu21)

I've not best idea like this:

*** curses.c.orig	Wed May 26 21:04:35 1993
--- curses.c	Sat May 29 20:01:35 1993
***************
*** 11,18 ****
   *              The Elm Mail System  -  $Revision: 2.1 $   $State: Exp $
   */
  
- #include "tin.h"
  
  #ifndef ns32000
  #	undef	sinix
  #endif
--- 11,18 ----
   *              The Elm Mail System  -  $Revision: 2.1 $   $State: Exp $
   */
  
  
+ 
  #ifndef ns32000
  #	undef	sinix
  #endif
***************
*** 23,28 ****
--- 23,30 ----
  #	include <sys/errno.h>
  #endif
  
+ #define TRUE 1
+ #define FALSE 0
  #define DEFAULT_LINES_ON_TERMINAL	24
  #define DEFAULT_COLUMNS_ON_TERMINAL	80
  
***************
*** 119,124 ****
--- 121,127 ----
  
  #endif /* INDEX_DAEMON */
  
+ #include "tin.h"
  
  void setup_screen ()
  {

--
P.S. If you can see that, that's works. 
____________________________________________
Piotr Karpiesiuk         pkarp@iem.pw.edu.pl
IETiME Warsaw Univ. of Tech., Poland 
Office phone: (004822) 21007-543 
Home        : (004822) 361686
Re: Tin v1.2 PL0 newsreader Bug List
#4307
Author: Hans de Graaff
Date: Sun, 30 May 1993 08:19
33 lines
2090 bytes
In article <1993May28.213622.28717@hp1.holl.com> dave@hp1.holl.com (David Vrona) writes:
>
>Here a fatal error I got when compiling tin 1.20 on Dell SVR4 v2.2.
>
>Any suggestions would be appreciated.
>
>Thanks,
>dave
>
>Compiling tin v1.20 for System V Release 4...
>	gcc -c -O2 -DSVR4 -DNNTP_INEWS_GATEWAY=\"\" -DNNTP_INEWS_DOMAIN=\".lcu.com\" -DLIBDIR=\"/usr/local/news\" -DSPOOLDIR=\"/var/spool/news\" curses.c
>curses.c: In function `Raw':
>curses.c:575: invalid use of undefined type `struct termio'
>curses.c:577: invalid use of undefined type `struct termio'
>curses.c:578: invalid use of undefined type `struct termio'
>curses.c: At top level:
>curses.c:94: storage size of `_raw_tty' isn't known
>curses.c:95: storage size of `_original_tty' isn't known
>*** Error code 1 (bu21)

This looks like the same thing I got on Solaris 2.1 (which is also
SVR4). Turns out termio.h didn't get included. I just put a #include
<termio.h> in curses.c, which solved that problem.

Also on Solaris the libraries -lsocket and -lnsl should be included.

Hans

-- 
Hans de Graaff                  | I want someone to follow,
J.J.deGraaff@IS.TWI.TUDelft.NL  |   who doesn't lead the way
Department of Informatics       | I want someone to listen,
Delft University of Technology  |   who won't repeat what I say
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4308
Author: P. J. Holsberg
Date: Sun, 30 May 1993 20:46
12 lines
1397 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: Massimo Manghi (manghi@prfs02.bio.unipr.it) wrote:

: > hi Iain, is it  possible to force tin to use a user specified editor?

: If you set the VISUAL environment variable, it will use that as your
: editor. Make sure you set the 'Editor offset' menu option accordingly. If
: you editor understands 'editor +line filename' then set it on. If this
: creates a file call '+line' (eg. pico) then turn that option off.

Is it possible to have TIN use a user-specified file viewer?
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4313
Author: Massimo Manghi
Date: Mon, 31 May 1993 12:52
24 lines
1855 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: Massimo Manghi (manghi@prfs02.bio.unipr.it) wrote:

: > hi Iain, is it  possible to force tin to use a user specified editor?

: If you set the VISUAL environment variable, it will use that as your
: editor. Make sure you set the 'Editor offset' menu option accordingly. If
: you editor understands 'editor +line filename' then set it on. If this
: creates a file call '+line' (eg. pico) then turn that option off.

: -- 
: Tom J Parry.
: Your reality is a figment of my imagination.

I want to tank all who posted their suggestions and Derek Bell who
sent me a personal message via e-mail. I faced the problem of the
cursor position offset and with a 'grep VISUAL *.c' and 'grep editor *.c'
i found the source line where the editor was started and realized what
i had to do.

grazie

 -- Massimo Manghi
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4321
Author: Iain Lea
Date: Mon, 31 May 1993 19:18
10 lines
1077 bytes
P. J. Holsberg (pjh@mccc.edu) wrote:
:
: Is it possible to have TIN use a user-specified file viewer?

No.

Iain

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4314
Author: Wuxu Peng
Date: Tue, 01 Jun 1993 00:33
39 lines
2009 bytes
In article <1993May29.144900.15545@anl433.uucp> iain.lea@anl433.erlm.siemens.de (Iain Lea) writes:
>Wuxu Peng (peng@hopper.cs.swt.edu) wrote:
>:
>: I still got no clue as how to use "overview" from INN with Tin1.2.
>
>Tin just knows (a mystery that you'll just have to live with :)
>
>Iain
>
>--
>iain.lea@erlm.siemens.de  +49-911-3089-407


Iain, thanks for your prompt reply and replies from several
netters through emails.   Yes, it does work well, except that
the following messages always show up in my "/usr/adm/messages"
file at the beginning of each session:


May 31 17:45:50 pirates nnrpd[1576]: hopper.cs.swt.edu connect
May 31 17:45:50 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized xindex
May 31 17:45:51 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized xuser
May 31 17:45:51 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized spooldir lis
t
May 31 17:45:51 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized xmotd 930529
 125825


I can live with it, although it is a little annoying.  Is it
possible to get rid of them?


Thanks.



-- 

--wuxu peng (peng@pirates.cs.swt.edu)
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4315
Author: Iain Lea
Date: Tue, 01 Jun 1993 06:19
19 lines
1518 bytes
Wuxu Peng (peng@pirates.cs.swt.edu) wrote:
:
: May 31 17:45:50 pirates nnrpd[1576]: hopper.cs.swt.edu connect
: May 31 17:45:50 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized xindex
: May 31 17:45:51 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized xuser
: May 31 17:45:51 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized spooldir lis
: t
: May 31 17:45:51 pirates nnrpd[1576]: hopper.cs.swt.edu unrecognized xmotd 930529
:  125825
:
: I can live with it, although it is a little annoying.  Is it
: possible to get rid of them?

Add -DDONT_HAVE_NNTP_EXTS to COPTS in Makefile and recompile tin.

Iain

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: Tin v1.2 PL0 newsreader Bug List
#4328
Author: Pope Clifton
Date: Wed, 02 Jun 1993 02:12
375 lines
11828 bytes
This is not _exactly_ a bug fix, but I figured many users would want to know,
since it's the second most serious annoyance with Tin. (#1 being the XRef
that Iain is working on.)

I figured out what was making the "Checking for new newsgroups" take so long
for local (non-NNTP) newspools, and rewrote that section with a new
algorithm.  I estimate that on a system with ~4000 newsgroups (like Netcom)
it will now take about 1/80 the time.  In practise, I can just see the
"checking..." message flash on the screen before it is replaced by the first
new group query.

I'm posting the patch here, and it's also on its way to Iain.  This time I
got the order of the diffs right.  However, it's first draft code, and
though some simple test cases worked right, it still may not be perfect. 
Apply with caution.  

*** orig/active.c	Tue Jun  1 18:22:17 1993
--- my/active.c	Tue Jun  1 18:51:27 1993
***************
*** 21,26 ****
--- 21,66 ----
  int active_index = -1;
  
  /*
+  * notify_t structure definiton was formerly internal to the
+  * check_for_any_new_groups function.
+  */
+ 
+ struct notify_t {
+ 		char name[PATH_LEN];
+ 		int visited;
+ 	};
+ 
+ /*
+  * It's easy to be confused by arrays of pointers to pointers, so
+  * typedefs are used for the first level pointers to keep it clearer.
+  */
+ 
+ typedef struct group_t * group_p;
+ typedef struct notify_t * notify_p;
+ 
+ /*
+  *  Compare two pointers to "group_t" structures - used in qsort.
+  */
+ 
+ int cmp_group_p (first, second)
+ 	group_p *first, *second;
+ {
+ 	return( strcmp( (*first)->name, (*second)->name ) );
+ }
+ 
+ 
+ /*
+  *  Compare two pointers to "notify_t" structures - used in qsort.
+  */
+ 
+ int cmp_notify_p (first, second)
+ 	notify_p *first, *second;
+ {
+ 	return( strcmp( (*first)->name, (*second)->name ) );
+ }
+ 
+ 
+ /*
   *  Get default array size for active[] from environment (AmigaDOS)
   *  or just return the standard default.
   */
***************
*** 89,95 ****
  	i = group_hash[h];
  	
  	/* 
! 	 * hash linked list chaining 
  	 */
  	while (i >= 0) {
  		if (strncmp (group, active[i].name, strlen (active[i].name)) == 0) {
--- 129,135 ----
  	i = group_hash[h];
  	
  	/* 
! 	 * hash linked list chaining
  	 */
  	while (i >= 0) {
  		if (strncmp (group, active[i].name, strlen (active[i].name)) == 0) {
***************
*** 159,165 ****
  }
  
  /*
!  *  Load the news active file into active[] and create copy 
   *  of active ~/.tin/active
   */
  
--- 199,205 ----
  }
  
  /*
!  *  Load the news active file into active[] and create copy
   *  of active ~/.tin/active
   */
  
***************
*** 309,315 ****
  	char buf[LEN], *ptr;
  	FILE *fp = (FILE *) 0;
  	int group_not_found;
! 	int ch, num = 0;
  	int ch_default = 'n';
  	int update_old_active = FALSE;
  	int max_old_active;
--- 349,355 ----
  	char buf[LEN], *ptr;
  	FILE *fp = (FILE *) 0;
  	int group_not_found;
! 	int ch, num = 0;	/* num == num_old_active groups */
  	int ch_default = 'n';
  	int update_old_active = FALSE;
  	int max_old_active;
***************
*** 316,329 ****
  	int new_active_size;
  	int old_active_size;
  	long epoch;
  	register int i, j;
  	struct stat sb;
  	struct tm *tm;
- 	struct notify_t {
- 		char name[PATH_LEN];
- 		int visited;
- 	} *old_active = (struct notify_t *) 0;
  
  	if ((! check_for_new_newsgroups || (update && ! update_fork))) {
  		return;
  	}
--- 356,372 ----
  	int new_active_size;
  	int old_active_size;
  	long epoch;
+ 	int compared;
  	register int i, j;
  	struct stat sb;
  	struct tm *tm;
  
+ 	notify_p old_active = (notify_p) 0;
+ 
+ 	notify_p *sorted_old_active = (notify_p *) 0;
+ 
+ 	group_p *sorted_active = (group_p *) 0;
+ 
  	if ((! check_for_new_newsgroups || (update && ! update_fork))) {
  		return;
  	}
***************
*** 352,364 ****
  	 * find out if we have read news from here before otherwise -1
  	 */
  	active_index = find_active_size_index (new_active_file_server);
! 		
  	if (debug == 2) {
  		if (active_index >= 0) {	
! 			strcpy (old_active_file_server, active_size[active_index].server); 
  			strcpy (old_active_file_attribute, active_size[active_index].attribute);
  		} else {
! 			strcpy (old_active_file_server, "UNKNOWN"); 
  			strcpy (old_active_file_attribute, "UNKNOWN");
  		}	
  		sprintf (msg, "Active size index=[%d]  old=[%s %s]  new=[%s %s]", 
--- 395,407 ----
  	 * find out if we have read news from here before otherwise -1
  	 */
  	active_index = find_active_size_index (new_active_file_server);
! 
  	if (debug == 2) {
  		if (active_index >= 0) {	
! 			strcpy (old_active_file_server, active_size[active_index].server);
  			strcpy (old_active_file_attribute, active_size[active_index].attribute);
  		} else {
! 			strcpy (old_active_file_server, "UNKNOWN");
  			strcpy (old_active_file_attribute, "UNKNOWN");
  		}	
  		sprintf (msg, "Active size index=[%d]  old=[%s %s]  new=[%s %s]", 
***************
*** 390,406 ****
  
  	Raw (TRUE);
  
! 	old_active = (struct notify_t *) my_malloc ((unsigned) sizeof (struct notify_t) * max_old_active);
! 	if (old_active == (struct notify_t *) 0) {
  		error_message (txt_out_of_memory, progname);
  		goto notify_groups_done;
  	}
! 	
  	while (fgets (buf, sizeof (buf), fp) != NULL) {
  		if (buf[0] == '.') {
  			break;
  		}
! 		strncpy (old_active[num].name, buf, sizeof (old_active[num].name));		
  		ptr = old_active[num].name;
  		while (*ptr && *ptr != ' ' && *ptr != '\n') {
  			ptr++;
--- 433,449 ----
  
  	Raw (TRUE);
  
! 	old_active = (notify_p) my_malloc ((unsigned) sizeof (struct notify_t) * max_old_active);
! 	if (old_active == (notify_p) 0) {
  		error_message (txt_out_of_memory, progname);
  		goto notify_groups_done;
  	}
! 
  	while (fgets (buf, sizeof (buf), fp) != NULL) {
  		if (buf[0] == '.') {
  			break;
  		}
! 		strncpy (old_active[num].name, buf, sizeof (old_active[num].name));
  		ptr = old_active[num].name;
  		while (*ptr && *ptr != ' ' && *ptr != '\n') {
  			ptr++;
***************
*** 410,419 ****
  		num++;
  		if (num >= max_old_active) {
  			max_old_active= max_old_active + (max_old_active / 2);
! 			old_active= (struct notify_t*) my_realloc(
! 				(char *) old_active, 
  				(unsigned) sizeof(struct notify_t) * max_old_active);
! 			if (old_active == (struct notify_t *) 0) {
  				error_message (txt_out_of_memory, progname);
  				goto notify_groups_done;
  			}
--- 453,462 ----
  		num++;
  		if (num >= max_old_active) {
  			max_old_active= max_old_active + (max_old_active / 2);
! 			old_active= (notify_p) my_realloc(
! 				(char *) old_active,
  				(unsigned) sizeof(struct notify_t) * max_old_active);
! 			if (old_active == (notify_p) 0) {
  				error_message (txt_out_of_memory, progname);
  				goto notify_groups_done;
  			}
***************
*** 436,458 ****
  		}
  	} else {	
  		wait_message (txt_checking_active_file);
! 		for (i = 0 ; i < num_active ; i++) {	
  			group_not_found = TRUE;
! 			for (j=0; j < num ; j++) {
! 				if (strcmp (old_active[j].name, active[i].name) == 0) {
! 					group_not_found = FALSE;	/* found it so read in next group */
! 					old_active[j].visited = TRUE;
! 					break;
! 				}
  			}
  
  			if (group_not_found == FALSE) {
  				continue;
! 			}	
! 	
  			update_old_active = TRUE;
! 	
! 			if (! prompt_subscribe_group (active[i].name)) {
  				if (cmd_line) {
  					printf ("\r\n");
  					fflush (stdout);
--- 479,546 ----
  		}
  	} else {	
  		wait_message (txt_checking_active_file);
! 		/*
! 		 * Clifton Royston 6/1/93
! 		 * The following code replaces the original check for new newsgroups,
! 		 * a source of much aggravation.
! 		 *
! 		 * The original algorithm compared each group name in active to (on
! 		 * average) 1/2 the groups in old_active, for ~N*N/2 string compares.
! 		 * This works out to ~~ 8,000,000 comparisons for 4000 newsgroups.
! 		 *
! 		 * The new algorithm allocates an array of pointers to the active
! 		 * and old_active array elements, sorts each pointer array with
! 		 * quicksort, then scans through the two arrays in 1 pass; this takes
! 		 * 2*N*Log2(N) string compares for the sorts, N for the final pass.
! 		 * This should work out to ~~ 100,000 comparisons for the same 4000
! 		 * newsgroups, a BIG, BIG win.
! 		 */
! 
! 		/* Allocate arrays to be sorted */
! 		sorted_active = (group_p *) my_malloc(
! 			(unsigned) sizeof (group_p) * num_active );
! 		if (sorted_active == (group_p *) 0) {
! 			error_message (txt_out_of_memory, progname);
! 			goto notify_groups_done;
! 		}
! 		sorted_old_active = (notify_p *) my_malloc(
! 			(unsigned) sizeof (notify_p) * num );
! 		if (sorted_old_active == (notify_p *) 0) {
! 			error_message (txt_out_of_memory, progname);
! 			goto notify_groups_done;
! 		}
! 
! 		/* Fill arrays to be sorted */
! 		for (i = 0 ; i < num_active ; i++)
! 			sorted_active[i] = &active[i];
! 		for (j = 0 ; j < num ; j++)
! 			sorted_old_active[j] = &old_active[j];
! 
! 		/* Sort the arrays */
! 		qsort( sorted_active, num_active, sizeof(group_p), cmp_group_p );
! 		qsort( sorted_old_active, num, sizeof(notify_p), cmp_notify_p );
! 
! 		/* Now do the pass through both arrays at once */
! 		j = 0;
! 		for (i = 0 ; i < num_active ; i++) {
  			group_not_found = TRUE;
! 			compared = 1;
! 			while ( (j < num) && ( 0 > 
! 				(compared = strcmp (sorted_old_active[j]->name, sorted_active[i]->name) ) ) )
! 				j++;
! 			if (compared == 0) {
! 				group_not_found = FALSE;	/* found it so read in next group */
! 				sorted_old_active[j]->visited = TRUE;
! 				j++;
  			}
  
  			if (group_not_found == FALSE) {
  				continue;
! 			}
! 
  			update_old_active = TRUE;
! 
! 			if (! prompt_subscribe_group (sorted_active[i]->name)) {
  				if (cmd_line) {
  					printf ("\r\n");
  					fflush (stdout);
***************
*** 532,540 ****
  		load_active_size_info (buf);
  	}
  
! 	if (old_active != (struct notify_t *) 0) {
  		free ((char *) old_active);
! 		old_active = (struct notify_t *) 0;
  	}
  
  	if (cmd_line) {
--- 620,641 ----
  		load_active_size_info (buf);
  	}
  
! 	/*
! 	 * Free malloc'd arrays
! 	 */
! 	if (old_active != (notify_p) 0) {
  		free ((char *) old_active);
! 		old_active = (notify_p) 0;
! 	}
! 
! 	if (sorted_old_active != (notify_p *) 0) {
! 		free ((char *) sorted_old_active);
! 		sorted_old_active = (notify_p *) 0;
! 	}
! 
! 	if (sorted_active != (group_p *) 0) {
! 		free ((char *) sorted_active);
! 		sorted_active = (group_p *) 0;
  	}
  
  	if (cmd_line) {


--
cliftonr@netcom.com     Home: +1 808 521 9073  Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
"Well now I don't know about that.  I'm a skeptic." -- John_-_Winston
Re: Tin v1.2 PL0 newsreader Bug List
#4340
Author: Mark Linimon
Date: Thu, 03 Jun 1993 02:05
27 lines
1971 bytes
A modest suggestion, for readability:

Rather than trying to keep all TIN bug fixes under one thread for ever and
ever, perhaps something simpler might be to use tags in the subject line.

Such as:

Subject: TIN: bugfix for the bar function
Subject: TIN: has anyone fixed the foo function yet?
Subject: TIN: how do you get TIN to handle 50000 newsgroups?
Subject: TRN: how do you get TRN to handle 50000 newsgroups?
Subject: NN: how do you convince all those TIN and TRN users that they don't
   need 50000 newsgroups?

Yes, I know I'm being silly, but I'm trying to make a serious point.  I
know of several other newsgroups that use this kind of tagging, and it
seems to work well.  It might really be helpful, since there seem to be
several newsreader communities all intermixed in news.software.readers.

Reactions?

Mark Linimon
-- 
    Mark Linimon / Lonesome Dove Computing Services / Roanoke, Virginia
   {chinacat,uunet}!nominil!linimon   ||    linimon@nominil.lonesome.com     
         "It's a small town, son, may I ask what you're doing here?"
I am coming to believe that Netnews is the digital equivalent of junk food...
Re: Tin v1.2 PL0 newsreader Bug List
#4360
Author: Iain Lea
Date: Fri, 04 Jun 1993 07:43
95 lines
4396 bytes
Pope Clifton (cliftonr@netcom.com) wrote:
:
: To save Iain's time, and everybody's time, once you have confirmed a
: specific bug and or fix, please post it via follow-up to this thread.

First off I like this thread as its easy to find :)

Just a status report to say what I have implemented/fixed in v1.2 PL1.
I hope to release this within the next couple of weeks.

The following lists what is still TODO in the patch queue for PL1:

    AmigaDOS patch (120K diff!) (Mark Tomlinson)
    Abort indexing of groups (Clifton Royston)
    SysVr4 compile problem (termio.h)
    AIX terminal abort/resume patch (?)
    Xref: patch (Herman ten Brugge  <herman@htbrug.hobby.nl>)
      (unfortunately it does not quite work :(. Please resubmit it asap) 

The following lists what has already been done for PL1:

1)  Earle Ake (ake@dayton.saic.com)
    BUG. BSDI has a bulitin compiler define that is not used.
    FIX. tin.h - applied supplied patch.

2)  Joachim Astel (achim@jat.sub.org)
    BUG. HAVE_SYS_TIME_H is defined in config.h but not used in tin.h
    FIX. tin.h - added HAVE_SYS_TIME_H #ifdef around sys/time.h.

3)  Iain Lea (iain.lea@erlm.siemens.de)
    BUG. While adding SCO Unix include file to v2.0 I forgot v1.2 PL0.
    FIX. tin.h - added <sys/times.h> for SCO Unix machines.

4)  Mike Glendinning (mikeg@ingres.co.uk)
    BUG. If using external inews via nntp the .signature is appened twice.
    FIX. sigfile.c - applied supplied patch.

5)  Anon (anon)
    BUG. Convex machines don't have gmtoff structure.
    FIX. config.h - Added __convex__ to #define DONT_HAVE_TM_GMTOFF.

6)  Joachim Astel (achim@jat.sub.org)
    BUG. Would not compile out of the box on CDC 4680 EPIX machine.
    FIX. Makefile config.h - applied supplied patch.

7)  George Baltz (gwb@umd5.umd.edu)
    BUG. Would not compile out of the box on DEC Alpha OSF/1 machine.
    FIX. config.h tin.h - applied supplied patch.

8)  Jim Morris (jegm@cody.esd.sgi.com)
    BUG. INSTALL document does not explain NOV & XOVER style index files.
    FIX. INSTALL - Added short note on NOV & XOVER.

9)  Bryan Curnutt (bryan%uhura1@uunet.uu.net)
    BUG. Typo's in the install rules in the Makefile.
    FIX. Makefile - applied supplied patch.

10) Bryan Curnutt (bryan%uhura1@uunet.uu.net)
    BUG. Compiling & installing tind daemon could be clearer.
    FIX. INSTALL - applied supplied patch.

11) Hakan Lennestal (Hakan.Lennestal@lu.erisoft.se)
    BUG. builtin inews does not use sitename/mailname files for hostname.
    FIX. inews.c - applied supplied patch.
    
12) Michael Morrell (morrell@hpsal2.cup.hp.com)
    BUG. get_user_info() in inews.c doesn't handle "&"s properly.
    FIX. inews.c - applied supplied patch.

13) Clifton Royston (cliftonr@netcom.com)
    BUG. Checking local news system for new newsgroups uses brute force.
    FIX. active.c - applied supplied patch.

14) Iain Lea (iain.lea@erlm.siemens.de)
    ADD. config.h - added #define NNTP_ABLE as default for machines that
         have net code in system libc.

15) John Schmitz (schmitz@scd.hp.com)
    BUG. 'g'oto group command does not resize if new group longer than 
         others.  Hilite problem on HPUX.
    FIX. group.c - added supplied patch.

16) John Schmitz (schmitz@scd.hp.com)
    BUG. Posting should check if each line begins with a '.' and if so
         add another '.'.
    FIX. inews.c - added supplied patch.

17) Christopher Sawtell (chris@gerty.equinox.gen.nz)
    BUG. Would not compile on ATT 3b2.
    FIX. config.h tin.h signal.c - applied supplied patch.

Iain

--
iain.lea@erlm.siemens.de  +49-911-3089-407
Re: ANNOUNCEMENT: Tin v1.2 PL0 newsreader posted to alt.sources
#4512
Author: Shih-Kun Huang
Date: Tue, 15 Jun 1993 07:41
20 lines
1920 bytes
This is a rare case. Few sites will have the following problem.
( and tins before 1.19 have no such problems )
 1. host1 is a INN server with overview index.
 2. host2 is a CNEWS server with tin index and no overview index.
Users in 'host1' try to use tin1.2 to read news from 'host2'.
And that tin1.2 is compiled with NNTP_ONLY. SPOOLDIR is set
to /usr/spool/news.
  
For normal cases, tin1.2 should use tin index to group articles
in host2. But in this case, it failed to do so. ..
It is because in open.c, open_xover_fp will try to send
xover command to server host2 and failed, but succeed 
to open .overview index in /usr/spool/news/group-dir/.overview.
in host1. (becuae host1 is a INN server)

Is this a feature for tin to read overview index
from local dir and not a bug? 
--
Shih-Kun Huang			|  Huang2 Shih4-Kun1
skhuang@csie.nctu.edu.tw	| 
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