nmh-workers
[Top] [All Lists]

Re: [nmh-workers] mts.conf relative sendmail option

2018-05-30 01:37:25

And I must note that I don't understand why changing the execv()
works.  Cyber uses:

  sendmail: sendmail

which is sendmail/smtp.  But the execv() is only used with
sendmail/pipe.  Cyber, can you show us your post.c diff?

I am using sendmail/pipe. I have
mts: sendmail/pipe
in my configuration.

Here is the patch:

*** nmh-1.7.1/uip/post.c        2018-03-06 19:05:56.000000000 +0000
--- nmh-1.7.1-patched/uip/post.c        2018-05-29 17:20:58.360494237 +0000
***************
*** 1709,1715 ****
                    argp[argc++] = "-v";
                argp[argc] = NULL;
  
!               execv (program, argp);
                adios (sendmail, "can't exec");
  
            default: 
--- 1709,1715 ----
                    argp[argc++] = "-v";
                argp[argc] = NULL;
  
!               execvp (program, argp);
                adios (sendmail, "can't exec");
  
            default: 

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>