[8767] in Athena Bugs

home help back first fref pref prev next nref lref last post

from: patches

daemon@ATHENA.MIT.EDU (Richard Basch)
Wed Dec 18 08:05:02 1991

Date: Wed, 18 Dec 91 08:04:43 -0500
To: bugs@MIT.EDU
Cc: mar@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>


These patches to "from" fix:

o Lack of following POP protocol (not sending QUIT command)
o Electronic mail check option on RISC/6000 not functioning

-Richard


*** /tmp/,RCSt1SAwDxQ	Wed Dec 18 08:02:07 1991
--- from.c	Wed Dec 18 08:00:38 1991
***************
*** 260,265 ****
--- 260,266 ----
  		return -1;
  	}
  	if (nmsgs == 0) {
+ 		(void) pop_command("QUIT");
  		return(0);
  	}
  	if (verbose || totals)
***************
*** 266,273 ****
  		printf("You have %d %s (%d bytes) on %s%c\n",
  		       nmsgs, nmsgs > 1 ? "messages" : "message",
  		       nbytes, host, verbose ? ':' : '.');
! 	if (totals)
  		return nmsgs;
  	if (printhdr)
  		puts("POP mail:");
  
--- 267,276 ----
  		printf("You have %d %s (%d bytes) on %s%c\n",
  		       nmsgs, nmsgs > 1 ? "messages" : "message",
  		       nbytes, host, verbose ? ':' : '.');
! 	if (totals) {
! 		(void) pop_command("QUIT");
  		return nmsgs;
+ 	}
  	if (printhdr)
  		puts("POP mail:");
  
***************
*** 491,496 ****
--- 494,500 ----
  	if (freopen(user, "r", stdin) == NULL) {
  	    if(!popmail)
  		  fprintf(stderr, "Can't open /usr/spool/mail/%s.\n", user);
+ 	    unixmail = 0;
  	    return -1;
  	}
  

home help back first fref pref prev next nref lref last post