{ "form formfile", 0 },
#define WHATSW 5
{ "whatnowproc program", 0 },
-#define NWHATSW 6
- { "nowhatnowproc", 0 },
-#define VERSIONSW 7
+#define VERSIONSW 6
{ "version", 0 },
-#define HELPSW 8
+#define HELPSW 7
{ "help", 0 },
{ NULL, 0 }
};
main(int argc, char **argv)
{
int anot = 0, nedit = 0;
- int nwhat = 0, in, out;
+ int in, out;
char *cp, *cwd, *maildir, *msgnam;
char *ed = NULL, *folder = NULL;
char *form = NULL, *msg = NULL, buf[BUFSIZ], drft[BUFSIZ];
if (!(whatnowproc = *argp++) || *whatnowproc == '-')
adios(NULL, "missing argument to %s",
argp[-2]);
- nwhat = 0;
- continue;
- case NWHATSW:
- nwhat++;
continue;
case FORMSW:
adios(drft, "unable to create");
fmtstr = new_fs(form, distcomps);
- if (write(out, fmtstr, strlen(fmtstr)) != strlen(fmtstr)) {
+ if (write(out, fmtstr, strlen(fmtstr)) != (int)strlen(fmtstr)) {
adios(drft, "error writing");
}
close(out);
seq_save(mp); /* synchronize sequences */
context_save();
- if (nwhat)
- done(0);
what_now(ed, nedit, NOUSE, drft, msgnam, 1, mp,
anot ? "Resent" : NULL, cwd);
done(1);