[net.sources] Network Mail Router modifications

cja (06/24/82)

The following modifications should allow Tim Curry's "nmail" program
(see June 20 net.sources) to run on most BTL UNIX 4.0 systems:

*** diff timsnmail.h mynmail.h:
22a23
>  * MAILER - The pathname of your favorite mailer.
29,30d29
< #define NETFILE		"/usr1/vlsi/tim/net/network"
< #define LOCAL		ucf-cs
31a31,34
> 
> #define NETFILE		"/g1/cja/netnews/nmail/sites"
> #define LOCAL		ihuxg
> #define	MAILER		"/g1/exptools/bin/Mail"

*** diff timsnmail.c mynmail.c:
98c98
<    /* initialize the buffer to mail */
---
>    /* initialize the buffer */
100,101c100,101
<    strcpy(paths,"mail ");
<    ppos = 5;
---
>    paths[0] = '\0';
>    ppos = 0;
107c107
<       if (!(index(argv[i],'@')) && !(index(argv[i],'!')))
---
>       if (!(strchr(argv[i],'@')) && !(strchr(argv[i],'!')))
116c116
<       {  if (index(argv[i],'@') && !(index(argv[i],'!'))) strcpy(addr,ARPA);
---
>       {  if (strchr(argv[i],'@') && !(strchr(argv[i],'!'))) strcpy(addr,ARPA);
187c187,189
<    execl("/usr/ucb/mail","mail",paths,0);
---
>    execl(MAILER,MAILER,paths,0);
>    fprintf(stderr,"%s:  unable to execl %s\n",argv[0],MAILER);
>    exit(1);

Of course, you must define NETFILE and LOCAL for your installation
via "runme".

Nmail runs like a champ.  Thanks to Tim for providing an alternative
for those of us shackled to officially supported systems!

		Chuck Antonelli   BTL/IW1Z-313   ihnss!ihuxg!cja