Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site allegra.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mp
From: mp@allegra.UUCP (Mark Plotnick)
Newsgroups: net.bugs.uucp,net.mail
Subject: Re: dual -> ihnp4 UUCP lossage on 10/17
Message-ID: <2859@allegra.UUCP>
Date: Fri, 19-Oct-84 21:29:14 EDT
Article-I.D.: allegra.2859
Posted: Fri Oct 19 21:29:14 1984
Date-Received: Sun, 21-Oct-84 14:08:24 EDT
References: <845@dual.UUCP>
Organization: AT&T Bell Laboratories, Murray Hill
Lines: 26

Here's a quick and dirty modification to the 4.2bsd uucp that will save
failed mail files in /usr/spool/uucp/failed.  It has come in
handy when ihnp4 and several other machines got their directory protections
screwed up and refused all file transfers.

*** cntrl.c.bsd	Sun Feb 19 10:41:49 1984
--- cntrl.c	Wed Apr 18 20:11:04 1984
***************
*** 607,612
  	sprintf(str, "file %s, system %s\n%s\n",
  		file, sys, msg);
  	mailst(user, str, "");
  	return;
  }
  

--- 607,615 -----
  	sprintf(str, "file %s, system %s\n%s\n",
  		file, sys, msg);
  	mailst(user, str, "");
+ 	/* mp: save failed files */
+ 	if (*msgcode == 'N' && strncmp(file, "D.", 2)==0)
+ 		xcp(file, "/usr/spool/uucp/failed");
  	return;
  }