-#endif /* if 0 */
-
-/* FCC INTERACTION */
-
-static void
-file(char *path)
-{
- int i;
-
- if (fccind == 0)
- return;
-
- for (i = 0; i < fccind; i++)
- fcc(path, fccfold[i]);
-}
-
-
-static void
-fcc(char *file, char *folder)
-{
- pid_t child_id;
- int i, status;
- char fold[BUFSIZ];
-
- if (verbose)
- printf("%sFcc: %s\n", msgstate == resent ? "Resent-" : "",
- folder);
- fflush(stdout);
-
- for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
- sleep(5);
- switch (child_id) {
- case NOTOK:
- if (!verbose)
- fprintf(stderr, " %sFcc %s: ", msgstate == resent ?
- "Resent-" : "", folder);
- fprintf(verbose ? stdout : stderr, "no forks, so not ok\n");
- break;
-
- case OK:
- snprintf(fold, sizeof(fold), "%s%s",
- *folder == '+' || *folder == '@' ? "" : "+", folder);
- execlp(fileproc, mhbasename(fileproc),
- "-link", "-file", file, fold, NULL);
- _exit(-1);
-
- default:
- if ((status = pidwait(child_id, OK))) {
- if (!verbose)
- fprintf(stderr, " %sFcc %s: ",
- msgstate == resent ?
- "Resent-" : "", folder);
- fprintf(verbose ? stdout : stderr, " errored (0%o)\n",
- status);
- }
- }
-
- fflush(stdout);
-}
-
-
-#if 0
-
-/*
-** TERMINATION
-*/
-
-static void
-die(char *what, char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- advertise(what, NULL, fmt, ap);
- va_end(ap);
-
- done(1);
-}
-#endif