Removed the whom program, which relayed on post(8) functionality.
[mmh] / uip / spost.c
index 4d23fe5..db16f38 100644 (file)
@@ -60,12 +60,6 @@ struct swit switches[] = {
        { "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 */
@@ -147,7 +141,6 @@ static int debug = 0;  /* debugging post */
 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;
@@ -244,10 +237,6 @@ main (int argc, char **argv)
                                        msgstate = resent;
                                        continue;
 
-                               case WHOMSW:
-                                       whomflg++;
-                                       continue;
-
                                case FILTSW:
                                        if (!(filter = *argp++) || *filter == '-')
                                                adios (NULL, "missing argument to %s", argp[-2]);
@@ -383,11 +372,10 @@ main (int argc, char **argv)
                        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:
@@ -406,7 +394,7 @@ main (int argc, char **argv)
        }
 
        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);
@@ -434,8 +422,6 @@ main (int argc, char **argv)
        *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;
@@ -841,10 +827,7 @@ file (char *path)
                return;
 
        for (i = 0; i < fccind; i++)
-               if (whomflg)
-                       printf ("Fcc: %s\n", fccfold[i]);
-               else
-                       fcc (path, fccfold[i]);
+               fcc (path, fccfold[i]);
 }