+ char **buildvec, *buildprogram;
+ char *volatile drft = draft;
+
+ /*
+ * Run the mimebuildproc (which is by default mhbuild) on the message
+ * with the addition of the "-auto" flag
+ */
+
+ switch (child = fork()) {
+ case NOTOK:
+ adios("fork", "unable to");
+ break;
+
+ case OK:
+ buildvec = argsplit(buildmimeproc, &buildprogram, &i);
+ buildvec[i++] = "-auto";
+ if (distfile)
+ buildvec[i++] = "-dist";
+ buildvec[i++] = (char *) drft;
+ buildvec[i] = NULL;
+ execvp(buildprogram, buildvec);
+ fprintf(stderr, "unable to exec ");
+ perror(buildmimeproc);
+ _exit(-1);
+ break;
+
+ default:
+ if (pidXwait(child, buildmimeproc))
+ return NOTOK;
+ break;
+ }