X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpost.c;h=3c4716100120e4a0d9c8d40a96e33c81c2b482d9;hb=f2f6f08eee1d6b084221f9899c4472e6f57230b7;hp=cc44a1d2eee1f8e87c4e99804e15329b3fbc7bc1;hpb=704bdde497da69854846d51d86c440fc980c5489;p=mmh diff --git a/uip/post.c b/uip/post.c index cc44a1d..3c47161 100644 --- a/uip/post.c +++ b/uip/post.c @@ -131,6 +131,8 @@ static struct swit switches[] = { { "fileproc", -4 }, #define MHLPROCSW 39 { "mhlproc", -3 }, +#define MTSSW 40 + { "mts smtp|sendmail/smtp|sendmail/pipe", 2 }, { NULL, 0 } }; @@ -518,6 +520,12 @@ main (int argc, char **argv) adios (NULL, "missing argument to %s", argp[-2]); mhlproc = cp; continue; + + case MTSSW: + if (!(cp = *argp++) || *cp == '-') + adios (NULL, "missing argument to %s", argp[-2]); + save_mts_method (cp); + continue; } } if (msg) @@ -1502,7 +1510,6 @@ post (char *file, int bccque, int talk, char *envelope) argp = sargv; *argp++ = "sendmail"; - *argp++ = "-m"; /* send to me too */ *argp++ = "-t"; /* read msg for recipients */ *argp++ = "-i"; /* don't stop on "." */ if (whomsw) @@ -1532,7 +1539,7 @@ post (char *file, int bccque, int talk, char *envelope) close (fd); fflush (stdout); - sm_end (OK); + sm_end (!(msgflags & MINV) || bccque ? OK : DONE); sigoff (); if (verbose) {