Feed fileproc and mhlproc from rcvdist, send, whatnow, and whom to post.
[mmh] / uip / post.c
index cd96ed7..419b86c 100644 (file)
@@ -146,6 +146,10 @@ static struct swit switches[] = {
     { "port server port name/number", 4 },
 #define TLSSW                   41
     { "tls", TLSminc(-3) },
+#define FILEPROCSW              42
+    { "fileproc", -4 },
+#define MHLPROCSW               43
+    { "mhlproc", -3 },
     { NULL, 0 }
 };
 
@@ -537,6 +541,18 @@ main (int argc, char **argv)
                case TLSSW:
                    tls++;
                    continue;
+
+               case FILEPROCSW:
+                   if (!(cp = *argp++) || *cp == '-')
+                       adios (NULL, "missing argument to %s", argp[-2]);
+                   fileproc = cp;
+                   continue;
+
+               case MHLPROCSW:
+                   if (!(cp = *argp++) || *cp == '-')
+                       adios (NULL, "missing argument to %s", argp[-2]);
+                   mhlproc = cp;
+                   continue;
            }
        }
        if (msg)