🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #204

PATCH #1 for 6.4 beta

#204
From: Kim F. Storm
Date: Sun, 18 Mar 1990 19:26
503 lines
15892 bytes
This posting contains the patches I have received sofar for the 6.4
beta release of nn.  It raises the release level to 6.4beta.1, but
the official release will still be 6.4.0!

Thank you to all who contributed these (or similar) fixes.

++Kim


*** /tst2/nn64/patchlevel.h	Sat Mar  3 21:19:54 1990
--- patchlevel.h	Sun Mar 18 20:20:43 1990
***************
*** 9,15 ****
   *	1989-05-30: Release 6.3		(comp.sources.unix)
   *	1989-09-08: Release 6.3.7	(FTP)
   *	1990-03-03: Release 6.4beta	(FTP)
   */
  
! #define PATCHLEVEL 0
  
--- 9,16 ----
   *	1989-05-30: Release 6.3		(comp.sources.unix)
   *	1989-09-08: Release 6.3.7	(FTP)
   *	1990-03-03: Release 6.4beta	(FTP)
+  *	1990-03-18: BETA PATCH 1
   */
  
! #define PATCHLEVEL 1
  
*** /tst2/nn64/answer.c	Fri Feb 23 20:30:02 1990
--- answer.c	Fri Mar 16 16:32:39 1990
***************
*** 558,567 ****
  /*
   * invoke aux shell script with suitable arguments
   *
!  * WARNING: record may be NULL, soit must be the last argument!!
   */
  
! static char prev_aux_opt[5] = "-----";
  
  static aux_option(opt, name, on)
  int opt;
--- 558,567 ----
  /*
   * invoke aux shell script with suitable arguments
   *
!  * WARNING: record may be NULL, so it must be the last argument!!
   */
  
! static char prev_aux_opt[] = "-----";
  
  static aux_option(opt, name, on)
  int opt;
*** /tst2/nn64/db.c	Sun Feb 25 17:04:35 1990
--- db.c	Sun Mar 18 18:24:54 1990
***************
*** 690,696 ****
      net_long buf[GROUP_FIELDS];
  
      if (!db_sequential) 
! 	fseek(master_file, MASTER_FIELDS * sizeof(net_long) + GROUP_FIELDS * sizeof(net_long) * gh->group_num, 0);
  
      if (fread(buf, sizeof(net_long), GROUP_FIELDS, master_file) != GROUP_FIELDS)
  	goto err;
--- 690,698 ----
      net_long buf[GROUP_FIELDS];
  
      if (!db_sequential) 
! 	fseek(master_file, 
! 	      MASTER_FIELDS * sizeof(net_long) + DB_LOCK_MESSAGE +
! 	      GROUP_FIELDS * sizeof(net_long) * gh->group_num, 0);
  
      if (fread(buf, sizeof(net_long), GROUP_FIELDS, master_file) != GROUP_FIELDS)
  	goto err;
***************
*** 729,735 ****
      net_long buf[GROUP_FIELDS];
  
      if (!db_sequential) 
! 	fseek(master_file, MASTER_FIELDS * sizeof(net_long) + GROUP_FIELDS * sizeof(net_long) * gh->group_num, 0);
  
      buf[0] = gh->first_db_article;
      buf[1] = gh->last_db_article;
--- 731,739 ----
      net_long buf[GROUP_FIELDS];
  
      if (!db_sequential) 
! 	fseek(master_file, 
! 	      MASTER_FIELDS * sizeof(net_long) + DB_LOCK_MESSAGE +
! 	      GROUP_FIELDS * sizeof(net_long) * gh->group_num, 0);
  
      buf[0] = gh->first_db_article;
      buf[1] = gh->last_db_article;
*** /tst2/nn64/global.c	Fri Feb 23 21:00:08 1990
--- global.c	Fri Mar 16 15:56:24 1990
***************
*** 92,98 ****
      s_redraw++;
  
  #ifdef RESET_SIGNAL_WHEN_CAUGHT
!     signal(n, catch_redraw);
  #endif
  
      suspend_nn();
--- 92,98 ----
      s_redraw++;
  
  #ifdef RESET_SIGNAL_WHEN_CAUGHT
!     signal(n, catch_suspend);
  #endif
  
      suspend_nn();
*** /tst2/nn64/init.c	Fri Feb 23 21:58:20 1990
--- init.c	Sun Mar 18 17:29:16 1990
***************
*** 617,623 ****
  	    orig_layout = fmt_linenum;
  	    orig_fsort = dont_sort_folders;
  	    
! 	    fmt_linenum = 4;
  	    dont_sort_folders = 1;
  	    
  	    folder_menu(manual);
--- 617,623 ----
  	    orig_layout = fmt_linenum;
  	    orig_fsort = dont_sort_folders;
  	    
! 	    fmt_linenum = -1;
  	    dont_sort_folders = 1;
  	    
  	    folder_menu(manual);
*** /tst2/nn64/inst.sh	Sun Feb 25 16:50:23 1990
--- inst.sh	Sun Mar 18 18:24:53 1990
***************
*** 151,156 ****
--- 151,159 ----
  1|m)
  	OPT=master
  	;;
+ n)
+ 	OPT="bin aux help online man"
+ 	;;
  2|c)
  	OPT=bin
  	;;
*** /tst2/nn64/master.c	Fri Mar  2 21:03:24 1990
--- master.c	Fri Mar 16 16:32:38 1990
***************
*** 81,86 ****
--- 81,87 ----
      debug_mode = 0,
  #ifdef NNTP
      silent = 1,
+     no_update = 0,
  #endif
      Debug = 0;
  
*** /tst2/nn64/menu.c	Fri Mar  2 22:23:34 1990
--- menu.c	Sun Mar 18 18:53:11 1990
***************
*** 20,26 ****
  export int  slow_mode	   = 0;	/* mark selected articles with *s */
  export int  re_layout      = 0; /* Re: format presentation on menus */
  export int  collapse_subject = 25; /* collapse long subjects at position */
! export int  conf_group_entry  = 0; /* ask whether group should be entered */
  export int  auto_preview_mode = 0; /* preview rather than select */
  export int  preview_continuation = 12; /* what to do after preview */
  export int  preview_mark_read = 1; /* previewed articles are A_READ */
--- 20,28 ----
  export int  slow_mode	   = 0;	/* mark selected articles with *s */
  export int  re_layout      = 0; /* Re: format presentation on menus */
  export int  collapse_subject = 25; /* collapse long subjects at position */
! export int  conf_group_entry = 0; /* ask whether group should be entered */
! export int  conf_entry_limit = 0; /* ask only if more than .. unread */
! 
  export int  auto_preview_mode = 0; /* preview rather than select */
  export int  preview_continuation = 12; /* what to do after preview */
  export int  preview_mark_read = 1; /* previewed articles are A_READ */
***************
*** 89,102 ****
      /* menu line formats:
                  1  3    8 10     20 22        xx
  		:  :    :  :      :  :        :
         0	id name           subject     +lines
         1	id name       lines  subject
         2	id  lines  subject
         3	id subject
!        4	id name:8 subject
       */
  
!     if (fmt_linenum > 5) fmt_linenum = 1;
  
      if (!slow_mode && (ah->attr & A_SELECT)) {
  	if (so_gotoxy(1, lno, 1) == 0)
--- 91,105 ----
      /* menu line formats:
                  1  3    8 10     20 22        xx
  		:  :    :  :      :  :        :
+        -1	id name:8 subject
         0	id name           subject     +lines
         1	id name       lines  subject
         2	id  lines  subject
         3	id subject
!        4	id   subject  (or as 1 if short subject)
       */
  
!     if (fmt_linenum > 4) fmt_linenum = 1;
  
      if (!slow_mode && (ah->attr & A_SELECT)) {
  	if (so_gotoxy(1, lno, 1) == 0)
***************
*** 115,126 ****
  
      switch (fmt_linenum) {
  
       case 0:
  	lsubj -= NAME_LENGTH + 1 + 2 + lnum;  /* name. .subj. +.lines */
  	so_printf("%-*s ", NAME_LENGTH, ah->sender);
  	break;
  
!      case 5:
  	if (ah->subj_length > (lsubj - NAME_LENGTH - 5))
  	    if (fmt_rptsubj || lno == firstl || (ah->flag & A_SAME) == 0) {
  		so_printf("  ");
--- 118,134 ----
  
      switch (fmt_linenum) {
  
+      case -1:
+ 	lsubj -= 9;
+ 	so_printf("%-8.8s ", ah->sender);
+ 	break;
+ 
       case 0:
  	lsubj -= NAME_LENGTH + 1 + 2 + lnum;  /* name. .subj. +.lines */
  	so_printf("%-*s ", NAME_LENGTH, ah->sender);
  	break;
  
!      case 4:
  	if (ah->subj_length > (lsubj - NAME_LENGTH - 5))
  	    if (fmt_rptsubj || lno == firstl || (ah->flag & A_SAME) == 0) {
  		so_printf("  ");
***************
*** 144,154 ****
  
       case 3:
  	break;
- 
-      case 4:
- 	lsubj -= 9;
- 	so_printf("%-8.8s ", ah->sender);
- 	break;
      }
  
      if (!fmt_rptsubj && lno > firstl && ah->flag & A_SAME) {
--- 152,157 ----
***************
*** 340,346 ****
      extern int 		enable_stop, file_completion();
      extern int		alt_cmd_key, in_menu_mode;
      article_number	elim_list[3];
!     int			entry_check = conf_group_entry;
      
  #define	menu_return(cmd) \
      { menu_cmd = (cmd); goto menu_exit; }
--- 343,349 ----
      extern int 		enable_stop, file_completion();
      extern int		alt_cmd_key, in_menu_mode;
      article_number	elim_list[3];
!     int			entry_check;
      
  #define	menu_return(cmd) \
      { menu_cmd = (cmd); goto menu_exit; }
***************
*** 353,358 ****
--- 356,364 ----
      
      menu_level++;
  
+     entry_check = menu_level == 1 && conf_group_entry && 
+ 	current_group->unread_count > conf_entry_limit;
+ 
      sprintf(pr_fmt, 
  	    menu_level == 1 ? 
  	      "\1\2-- SELECT %s-----%%s-----\1" :
***************
*** 1178,1184 ****
  	 goto build_prompt;
  	 
        case K_LAYOUT:
! 	 if (++fmt_linenum > 3) fmt_linenum = 0;
  	 goto redraw;
  	
        default:
--- 1184,1190 ----
  	 goto build_prompt;
  	 
        case K_LAYOUT:
! 	 if (++fmt_linenum > 4) fmt_linenum = 0;
  	 goto redraw;
  	
        default:
*** /tst2/nn64/nn.1	Sat Mar  3 21:01:01 1990
--- nn.1	Sun Mar 18 18:57:05 1990
***************
*** 327,332 ****
--- 327,335 ----
  .TP
  3:
  \fIx Subject...........................................\fP
+ .TP
+ 4:
+ \fIx    Subject........................................\fP
  .LP
  Here \fIx\fP is the letter or digit that must be entered to select the
  article, \fIName\fP is the real name of the sender (or the mail
***************
*** 337,342 ****
--- 340,350 ----
  Layout 0 and 1 are just two ways to present the same information,
  while layout 2 and 3 are intended for groups whose articles have very
  long subject lines, e.g. comp.sources.
+ .PP
+ Layout 4 is a hybrid between layout 1 and 3.  It will normally use
+ layout 1, but it will use layout 3 (with a little indentation) for
+ menu lines where the subject is longer than the space avaiable with
+ layout 1.
  .LP
  Layout 1 is the default layout, and an alternative menu line layout is
  selected using the \-\fBL\fP option or by setting the
***************
*** 1661,1667 ****
  .TP
  \&\fBL\fP	{\fBlayout\fP}
  Change menu layout in selection mode.  The menu will be redrawn using
! the next layout (cycling through ..., 2, 3, 0, 1, ...)
  .LP
  Most of the commands in \fInn\fP are bound to a key and can be activated
  by a single keystroke.  However, there are a few commands that
--- 1669,1675 ----
  .TP
  \&\fBL\fP	{\fBlayout\fP}
  Change menu layout in selection mode.  The menu will be redrawn using
! the next layout (cycling through ..., 2, 3, 4, 0, 1, ...)
  .LP
  Most of the commands in \fInn\fP are bound to a key and can be activated
  by a single keystroke.  However, there are a few commands that
***************
*** 2026,2034 ****
  .TP
  \fBconfirm-entry\fP		(boolean, default false)
  When set, \fInn\fP will ask for confirmation before entering a group
! with unread articles.  It is useful on slow terminals if you don't
! want to wait until \fInn\fP has drawn the first menu to be able to
! skip the group.
    Answering no to the "Enter?" prompt will cause \fInn\fP to skip to
  the next group without marking the current group as read.  If you
  answer by hitting \fBinterrupt\fP, \fInn\fP will ask the question
--- 2034,2042 ----
  .TP
  \fBconfirm-entry\fP		(boolean, default false)
  When set, \fInn\fP will ask for confirmation before entering a group
! with more than \fBconfirm-entry-limit\fP unread articles (on the first
! menu level).  It is useful on slow terminals if you don't want to wait
! until \fInn\fP has drawn the first menu to be able to skip the group.
    Answering no to the "Enter?" prompt will cause \fInn\fP to skip to
  the next group without marking the current group as read.  If you
  answer by hitting \fBinterrupt\fP, \fInn\fP will ask the question
***************
*** 2036,2041 ****
--- 2044,2053 ----
  before going to the next group.  If this second question is also
  answered by hitting \fBinterrupt\fP, \fInn\fP will quit immediately.
  .TP
+ \fBconfirm-entry-limit\fP	(integer, default 0)
+ Specifies the minimum number of unread articles in a group for which
+ the \fBconfirm-entry\fP functionality is activated.
+ .TP
  \fBconfirm-junk-seen\fP		(boolean, default false)
  When set, \fInn\fP will require confirmation before marking seen
  articles as read when \fBauto-junk-seen\fP is set.
***************
*** 2196,2202 ****
  when \fInn\fP is prompting for a string, e.g. a file name.
  .TP
  \fBlayout\fP \fInumber\fP	(integer, default 1)
! Set the menu layout.  The argument must be a number between 0 and 5.
  .TP
  \fBlimit\fP \fImax-articles\fP	(integer, default infinite)
  .I Limit
--- 2208,2214 ----
  when \fInn\fP is prompting for a string, e.g. a file name.
  .TP
  \fBlayout\fP \fInumber\fP	(integer, default 1)
! Set the menu layout.  The argument must be a number between 0 and 4.
  .TP
  \fBlimit\fP \fImax-articles\fP	(integer, default infinite)
  .I Limit
***************
*** 2745,2751 ****
  \-\fBL\fP[\fIf\fP]	{\fBset layout\fP \fIf\fP}
  Select alternative menu layout
  .IR f 
! (0 to 3).
  If
  .I f
  is omitted, menu layout 3 is selected.
--- 2757,2763 ----
  \-\fBL\fP[\fIf\fP]	{\fBset layout\fP \fIf\fP}
  Select alternative menu layout
  .IR f 
! (0 to 4).
  If
  .I f
  is omitted, menu layout 3 is selected.
*** /tst2/nn64/nntp.c	Tue Feb 20 10:07:47 1990
--- nntp.c	Sun Mar 18 17:20:44 1990
***************
*** 664,680 ****
  	}
      cptr = &cache[lru];
      
!     if (cptr->file_name)
! 	unlink(cptr->file_name);
!     else {
  	if (nntp_cache_dir != NULL)
  	    sprintf(name, "%s/nn-%d.%02d", nntp_cache_dir, process_id, lru);
  	else 
  	    sprintf(name, "%s/cache%d.%02d", nn_directory, 
  		    no_update ? process_id : 0, lru);
!     }
!     
!     cptr->file_name = copy_str(name);
      cptr->time = time_counter++;
      return cptr;
  }
--- 664,679 ----
  	}
      cptr = &cache[lru];
      
!     if (cptr->file_name == NULL) {
  	if (nntp_cache_dir != NULL)
  	    sprintf(name, "%s/nn-%d.%02d", nntp_cache_dir, process_id, lru);
  	else 
  	    sprintf(name, "%s/cache%d.%02d", nn_directory, 
  		    no_update ? process_id : 0, lru);
! 	cptr->file_name = copy_str(name);
!     } else
! 	unlink(cptr->file_name);
! 
      cptr->time = time_counter++;
      return cptr;
  }
*** /tst2/nn64/term.c	Tue Feb 27 16:12:52 1990
--- term.c	Sun Mar 18 17:20:47 1990
***************
*** 577,584 ****
  so_printxy(va_alist)
  va_dcl
  {
-     use_vararg;
      int k, l;
  
      start_vararg;
      
--- 577,584 ----
  so_printxy(va_alist)
  va_dcl
  {
      int k, l;
+     use_vararg;
  
      start_vararg;
      
*** /tst2/nn64/variable.c	Thu Mar  1 10:37:55 1990
--- variable.c	Sun Mar 18 18:50:05 1990
***************
*** 87,92 ****
--- 87,93 ----
  import int			/* integer variables */
      also_read_articles,
      article_limit,
+     conf_entry_limit,
      collapse_subject,
      Columns,
      data_bits,
***************
*** 174,179 ****
--- 175,181 ----
      "confirm-auto-quit",	BOOL 0,		(char **)&conf_auto_quit,
      "confirm-create",		BOOL 0,		(char **)&conf_create,
      "confirm-entry",		BOOL 0,		(char **)&conf_group_entry,
+     "confirm-entry-limit",	INT 0,		(char **)&conf_entry_limit,
      "confirm-junk-seen", 	BOOL 0,		(char **)&conf_junk_seen,
      "confirm-messages",		BOOL 0,		(char **)&conf_dont_sleep,
      "cross-filter-seq",		BOOL 0,		(char **)&seq_cross_filtering,


-- 
Kim F. Storm        storm@texas.dk        Tel +45 429 174 00
Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark
	  No news is good news, but nn is better!
Technical Details
Message-ID: <488@texas.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm

Show Full Headers
Complete Article Headers
Message-ID: <488@texas.dk>
Subject: PATCH #1 for 6.4 beta
Date: Sun, 18 Mar 1990 19:26:02 +0000
From: storm@texas.dk (Kim F. Storm)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
Newsgroups: news.software.nn
Organization: Texas Instruments, Denmark
Lines: 503
Posted: Sun Mar 18 20:26:02 1990