From 6e8e22e2ff93a8778f53b56246c42bf7f4dd8026 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Thu, 14 Jun 2012 02:19:43 +0200 Subject: [PATCH] spost: Just a move of some code. --- uip/spost.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/uip/spost.c b/uip/spost.c index 73f9b0a..30e283f 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -298,16 +298,6 @@ main(int argc, char **argv) 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)) { @@ -326,6 +316,15 @@ main(int argc, char **argv) } 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; -- 1.7.10.4