Rn bug patch #15 (REPOSTED)

Jonathan Biggar jonab at sdcrdcf.UUCP
Sat Nov 17 10:03:16 AEST 1984


System: rn version 4.1
Bug #: 15
Priority: LOW
Subject: (Mail) happens inappropriately.
Index: ng.c
Prereq: 4.1.1.2
From: mp at allegra.UUCP

Description:
	Since (at least here) people frequently keep messages in their
	mailboxes for weeks at a time, the (Mail) prompt is a bit
	misleading.  I changed it so that the prompt appears only if the
	mailbox contains unread mail.

Fix:	From rn, say "| patch -d DIR", where DIR is your rn source directory.
	Outside of rn, say "cd DIR; patch <thisarticle".  If you don't have
	the patch program, apply the following by hand, or get patch.

	This patch must be applied only to a revision 4.1.1.2
	ng.c (with patch #10 applied).

*** /tmp/,RCSt1018433	Fri Oct 12 17:18:32 1984
--- /tmp/,RCSt2018433	Fri Oct 12 17:18:57 1984
***************
*** 1,4
! /* $Header: ng.c,v 4.1.1.2 84/10/12 15:33:15 lwall Exp $
   *
   * $Log:	ng.c,v $
   * Revision 4.1.1.2  84/10/12  15:33:15  lwall

--- 1,4 -----
! /* $Header: ng.c,v 4.1.1.3 84/10/12 17:16:41 lwall Exp $
   *
   * $Log:	ng.c,v $
   * Revision 4.1.1.3  84/10/12  17:16:41  lwall
***************
*** 1,6
  /* $Header: ng.c,v 4.1.1.2 84/10/12 15:33:15 lwall Exp $
   *
   * $Log:	ng.c,v $
   * Revision 4.1.1.2  84/10/12  15:33:15  lwall
   * Oops, didn't get all the %d's to %ld's.
   * 

--- 1,9 -----
  /* $Header: ng.c,v 4.1.1.3 84/10/12 17:16:41 lwall Exp $
   *
   * $Log:	ng.c,v $
+  * Revision 4.1.1.3  84/10/12  17:16:41  lwall
+  * Hid old mail in mailbox.
+  * 
   * Revision 4.1.1.2  84/10/12  15:33:15  lwall
   * Oops, didn't get all the %d's to %ld's.
   * 
***************
*** 890,896
      if (! (mailcount++)) {
  	char *mailfile = filexp(getval("MAILFILE",MAILFILE));
  	
! 	if (stat(mailfile,&filestat) < 0 || !filestat.st_size)
  	    mailcall = nullstr;
  	else
  	    mailcall = "(Mail) ";

--- 893,900 -----
      if (! (mailcount++)) {
  	char *mailfile = filexp(getval("MAILFILE",MAILFILE));
  	
! 	if (stat(mailfile,&filestat) < 0 || !filestat.st_size
! 	    || filestat.st_atime > filestat.st_mtime)
  	    mailcall = nullstr;
  	else
  	    mailcall = "(Mail) ";



More information about the Comp.sources.bugs mailing list