projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
whatnow: Improved the listing of available commands in the WhatNow shell.
[mmh]
/
uip
/
spost.c
diff --git
a/uip/spost.c
b/uip/spost.c
index
4c1210b
..
30e283f
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-19,7
+19,7
@@
#define MAX_SM_FIELD 1476 /* < largest hdr field sendmail will accept */
#define MAX_SM_FIELD 1476 /* < largest hdr field sendmail will accept */
-struct swit switches[] = {
+static struct swit switches[] = {
#define VERBSW 0
{ "verbose", 0 },
#define NVERBSW 1
#define VERBSW 0
{ "verbose", 0 },
#define NVERBSW 1
@@
-298,16
+298,6
@@
main(int argc, char **argv)
fcc(tmpfil, fccs);
}
fcc(tmpfil, fccs);
}
- argp = sargv;
- *argp++ = "send-mail";
- *argp++ = "-m"; /* send to me too */
- *argp++ = "-t"; /* read msg for recipients */
- *argp++ = "-i"; /* don't stop on "." */
- if (watch || verbose) {
- *argp++ = "-v";
- }
- *argp = NULL;
-
if (bccs) {
process_bccs(tmpfil);
if (!(msgflags & MVIS)) {
if (bccs) {
process_bccs(tmpfil);
if (!(msgflags & MVIS)) {
@@
-326,6
+316,15
@@
main(int argc, char **argv)
}
unlink(tmpfil);
}
unlink(tmpfil);
+ argp = sargv;
+ *argp++ = "send-mail";
+ *argp++ = "-m"; /* send to me too */
+ *argp++ = "-t"; /* read msg for recipients */
+ *argp++ = "-i"; /* don't stop on "." */
+ if (watch || verbose) {
+ *argp++ = "-v";
+ }
+ *argp = NULL;
execv(sendmail, sargv);
adios(sendmail, "can't exec");
return -1;
execv(sendmail, sargv);
adios(sendmail, "can't exec");
return -1;