{ "debug", -5 },
#define DISTSW 18
{ "dist", -4 }, /* interface from dist */
-#define CHKSW 19
- { "check", -5 }, /* interface from whom */
-#define NCHKSW 20
- { "nocheck", -7 }, /* interface from whom */
-#define WHOMSW 21
- { "whom", -4 }, /* interface from whom */
#define PUSHSW 22 /* fork to sendmail then exit */
{ "push", -4 },
#define NPUSHSW 23 /* exec sendmail */
static int rmflg = 1; /* remove temporary file when done */
static int watch = 0; /* watch the delivery process */
static int backflg = 0; /* rename input file as *.bak when done */
-static int whomflg = 0; /* if just checking addresses */
static int pushflg = 0; /* if going to fork to sendmail */
static int aliasflg = -1; /* if going to process aliases */
static int outputlinelen=72;
msgstate = resent;
continue;
- case WHOMSW:
- whomflg++;
- continue;
-
case FILTSW:
if (!(filter = *argp++) || *filter == '-')
adios (NULL, "missing argument to %s", argp[-2]);
case BODY:
finish_headers (out);
fprintf (out, "\n%s", buf);
- if(whomflg == 0)
- while (state == BODY) {
- state = m_getfld (state, name, buf, sizeof(buf), in);
- fputs (buf, out);
- }
+ while (state == BODY) {
+ state = m_getfld (state, name, buf, sizeof(buf), in);
+ fputs (buf, out);
+ }
break;
case FILEEOF:
}
fclose (in);
- if (backflg && !whomflg) {
+ if (backflg) {
strncpy (buf, m_backup (msg), sizeof(buf));
if (rename (msg, buf) == NOTOK)
advise (buf, "unable to rename %s to", msg);
*argp++ = "-m"; /* send to me too */
*argp++ = "-t"; /* read msg for recipients */
*argp++ = "-i"; /* don't stop on "." */
- if (whomflg)
- *argp++ = "-bv";
if (watch || verbose)
*argp++ = "-v";
*argp = NULL;
return;
for (i = 0; i < fccind; i++)
- if (whomflg)
- printf ("Fcc: %s\n", fccfold[i]);
- else
- fcc (path, fccfold[i]);
+ fcc (path, fccfold[i]);
}