projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If post or send fail, exit with their exit status.
[mmh]
/
uip
/
post.c
diff --git
a/uip/post.c
b/uip/post.c
index
9c9bec9
..
3c47161
100644
(file)
--- a/
uip/post.c
+++ b/
uip/post.c
@@
-131,6
+131,8
@@
static struct swit switches[] = {
{ "fileproc", -4 },
#define MHLPROCSW 39
{ "mhlproc", -3 },
{ "fileproc", -4 },
#define MHLPROCSW 39
{ "mhlproc", -3 },
+#define MTSSW 40
+ { "mts smtp|sendmail/smtp|sendmail/pipe", 2 },
{ NULL, 0 }
};
{ NULL, 0 }
};
@@
-518,6
+520,12
@@
main (int argc, char **argv)
adios (NULL, "missing argument to %s", argp[-2]);
mhlproc = cp;
continue;
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)
}
}
if (msg)
@@
-1502,7
+1510,6
@@
post (char *file, int bccque, int talk, char *envelope)
argp = sargv;
*argp++ = "sendmail";
argp = sargv;
*argp++ = "sendmail";
- *argp++ = "-m"; /* send to me too */
*argp++ = "-t"; /* read msg for recipients */
*argp++ = "-i"; /* don't stop on "." */
if (whomsw)
*argp++ = "-t"; /* read msg for recipients */
*argp++ = "-i"; /* don't stop on "." */
if (whomsw)