X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhmail.c;h=5c7f002d46de092642232fb109005b576987d68f;hp=ef1a050b47c2a8e6ae984d5e8f336889395dbc6b;hb=853cad7faa5eed9a5988825ac24f462887e12494;hpb=9bc048fdbfba0a5330b5b447e4f4c8c8b11ee7be diff --git a/uip/mhmail.c b/uip/mhmail.c index ef1a050..5c7f002 100644 --- a/uip/mhmail.c +++ b/uip/mhmail.c @@ -23,13 +23,9 @@ static struct swit switches[] = { #define SUBJSW 3 { "subject text", 0 }, #define VERSIONSW 4 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 5 { "help", 0 }, -#define RESNDSW 6 - { "resent", -6 }, -#define QUEUESW 7 - { "queued", -6 }, { NULL, 0 } }; @@ -38,15 +34,16 @@ static char tmpfil[BUFSIZ]; /* ** static prototypes */ -static RETSIGTYPE intrser(int); +static void intrser(int); int main(int argc, char **argv) { pid_t child_id; - int status, i, iscc = 0, nvec; - int queued = 0, resent = 0, somebody; + int status, iscc = 0, nvec; + unsigned int i; + int somebody; char *cp, *tolist = NULL, *cclist = NULL, *subject = NULL; char *from = NULL, *body = NULL, **argp, **arguments; char *vec[5], buf[BUFSIZ]; @@ -110,14 +107,6 @@ main(int argc, char **argv) adios(NULL, "missing argument to %s", argp[-2]); continue; - - case RESNDSW: - resent++; - continue; - - case QUEUESW: - queued++; - continue; } } if (iscc) @@ -139,15 +128,14 @@ main(int argc, char **argv) SIGNAL2(SIGINT, intrser); - fprintf(out, "%sTo: %s\n", resent ? "Resent-" : "", tolist); + fprintf(out, "To: %s\n", tolist); if (cclist) - fprintf(out, "%sCc: %s\n", resent ? "Resent-" : "", cclist); + fprintf(out, "Cc: %s\n", cclist); if (subject) - fprintf(out, "%sSubject: %s\n", resent ? "Resent-" : "", subject); + fprintf(out, "Subject: %s\n", subject); if (from) - fprintf(out, "%sFrom: %s\n", resent ? "Resent-" : "", from); - if (!resent) - fputs("\n", out); + fprintf(out, "From: %s\n", from); + fputs("\n", out); if (body) { fprintf(out, "%s", body); @@ -168,10 +156,6 @@ main(int argc, char **argv) nvec = 0; vec[nvec++] = "spost"; vec[nvec++] = tmpfil; - if (resent) - vec[nvec++] = "-dist"; - if (queued) - vec[nvec++] = "-queued"; vec[nvec] = NULL; if ((child_id = fork()) == NOTOK) { @@ -211,14 +195,9 @@ main(int argc, char **argv) } -static RETSIGTYPE +static void intrser(int i) { -#ifndef RELIABLE_SIGNALS - if (i) - SIGNAL(i, SIG_IGN); -#endif - unlink(tmpfil); done(i != 0 ? 1 : 0); }