;;
comp )
options=(-form -use -nouse
- -editor -noedit -whatnowproc -nowhatnowproc
+ -editor -noedit -whatnowproc
-version -help )
;;
flist* )
;;
forw )
options=(-annotate -noannotate -form
- -editor -noedit -whatnowproc
- -nowhatnowproc -build
+ -editor -noedit -whatnowproc -build
-version -help)
;;
inc )
options=(-annotate -noannotate -group -nogroup -cc
-nocc -query -noquery -form -filter -nofilter
-mime -nomime -editor -noedit -whatnowproc
- -nowhatnowproc -build -file -version -help)
+ -build -file -version -help)
;;
rmf )
options=(-interactive -nointeractive -version -help)
-K mhcomp -S / -q - 'c[-1]' -K mhfseq - \
'C[-1,-(editor|whatnowproc)]' -c - \
's[-]' -k "(editor noedit \
- form use nouse whatnowproc nowhatnowproc help)" - \
+ form use nouse whatnowproc help)" - \
'c[-1,-form]' -K mhfile -- comp
compctl -K mhfseq -x 's[+][@]' \
-K mhcomp -S / -q - 'c[-1]' -K mhfseq -\
's[-]' -k "(annotate noannotate cc nocc \
editor noedit filter nofilter form group nogroup \
- query noquery width whatnowproc nowhatnowproc help)" - 'c[-1,(cc|nocc)]' \
+ query noquery width whatnowproc help)" - 'c[-1,(cc|nocc)]' \
-k "(all to cc me)" - 'C[-1,-(filter|form)]' -K mhfile - \
'C[-1,-(editor|whatnowproc)]' -c -- repl
.RB [ \-noedit ]
.RB [ \-whatnowproc
.IR program ]
-.RB [ \-nowhatnowproc ]
.RB [ \-version ]
.RB [ \-help ]
.ad
program. See
.BR whatnow (1)
for a discussion of
-available options. The invocation of this program can be inhibited
-by using the
-.B \-nowhatnowproc
-switch. (In truth of fact, it is
-the
-.I whatnow
-program which starts the initial edit. Hence,
-.B \-nowhatnowproc
-will prevent any edit from occurring.)
+available options.
.SH FILES
.fc ^ ~
.RB [ \-noedit ]
.RB [ \-whatnowproc
.IR program ]
-.RB [ \-nowhatnowproc ]
.RB [ \-version ]
.RB [ \-help ]
.ad
.B whatnow
program. See
.BR whatnow (1)
-for a discussion of available options. The invocation of this
-program can be inhibited by using the
-.B \-nowhatnowproc
-switch. (In truth of fact, it is the
-.B whatnow
-program which starts the initial edit. Hence,
-.B \-nowhatnowproc
-will prevent any edit from occurring.)
+for a discussion of available options.
.SH FILES
.fc ^ ~
.RB [ \-noedit ]
.RB [ \-whatnowproc
.IR program ]
-.RB [ \-nowhatnowproc ]
.RB [ \-build ]
.RB [ \-version ]
.RB [ \-help ]
program. See
.BR whatnow (1)
for a discussion of
-available options. The invocation of this program can be inhibited
-by using the
-.B \-nowhatnowproc
-switch. (In truth of fact, it is
-the
-.I whatnow
-program which starts the initial edit. Hence,
-.B \-nowhatnowproc
-will prevent any edit from occurring.)
+available options.
.PP
The
.B \-build
.BR nmh ,
and is only present if
.B nmh
-was compiled with support for mh-e. It implies
-.BR \-nowhatnowproc .
+was compiled with support for mh-e.
It causes a file `draft' in the mail storage root
to be created, containing the draft message that would normally be presented
to the user for editing.
+No
+.B whatnow
+program is invoked.
No mail is actually sent. Note that this switch is not guaranteed to
be present or to have the same effects in future versions of
.BR nmh :
.RB [ \-noedit ]
.RB [ \-whatnowproc
.IR program ]
-.RB [ \-nowhatnowproc ]
.RB [ \-build ]
.RB [ \-file
.IR msgfile ]
program. See
.BR whatnow (1)
for a discussion of available
-options. The invocation of this program can be inhibited by using the
-.B \-nowhatnowproc
-switch. (In truth of fact, it is the
-.B whatnow
-program which starts the initial edit. Hence,
-.B \-nowhatnowproc
-will
-prevent any edit from occurring.)
+options.
.PP
The
.B \-build
and is only present if
.B nmh
was compiled with support
-for mh-e. It implies
-.BR \-nowhatnowproc .
+for mh-e.
It causes a file
.I reply (in the mail storage root)
to be created, containing the draft message that would normally be presented
to the user for editing.
+No
+.B whatnow
+programm is invoked.
No mail is actually sent. Note that this switch is not guaranteed to
be present or to have the same effects in future versions of
.BR nmh :
{ "nouse", 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 }
};
int
main(int argc, char **argv)
{
- int use = NOUSE, nedit = 0, nwhat = 0;
+ int use = NOUSE, nedit = 0;
int in, out;
char *cp, *cwd, *maildir;
char *ed = NULL, *form = NULL;
case WHATSW:
if (!(whatnowproc = *argp++) || *whatnowproc == '-')
adios(NULL, "missing argument to %s", argp[-2]);
- nwhat = 0;
- continue;
- case NWHATSW:
- nwhat++;
continue;
case FORMSW:
}
context_save();
-
- if (nwhat) {
- done(0);
- }
what_now(ed, nedit, use, drft, NULL, 0, NULLMP, NULL, cwd);
done(1);
return 1;
{ "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:
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);
{ "volume number", 0 },
#define WHATSW 8
{ "whatnowproc program", 0 },
-#define NWHATSW 9
- { "nowhatnowproc", 0 },
-#define VERSIONSW 10
+#define VERSIONSW 9
{ "version", 0 },
-#define HELPSW 11
+#define HELPSW 10
{ "help", 0 },
#ifdef MHE
{
int msgp = 0, anot = 0;
int issue = 0, volume = 0;
- int nedit = 0, nwhat = 0, in;
+ int nedit = 0, in;
int out, msgnum;
char *cp, *cwd, *maildir;
char *digest = NULL, *ed = NULL;
*whatnowproc == '-')
adios(NULL, "missing argument to %s",
argp[-2]);
- nwhat = 0;
continue;
#ifdef MHE
case BILDSW:
buildsw++; /* fall... */
-#endif /* MHE */
- case NWHATSW:
- nwhat++;
continue;
+#endif /* MHE */
case FORMSW:
if (!(form = *argp++) || *form == '-')
seq_save(mp); /* synchronize sequences */
context_save(); /* save the context file */
- if (nwhat)
+ if (buildsw)
done(0);
what_now(ed, nedit, NOUSE, drft, NULL, 0, mp,
anot ? "Forwarded" : NULL, cwd);
{ "noquery", 0 },
#define WHATSW 15
{ "whatnowproc program", 0 },
-#define NWHATSW 16
- { "nowhatnowproc", 0 },
-#define VERSIONSW 17
+#define VERSIONSW 16
{ "version", 0 },
-#define HELPSW 18
+#define HELPSW 17
{ "help", 0 },
-#define FILESW 19
+#define FILESW 18
{ "file file", 4 }, /* interface from msh */
-
#ifdef MHE
-#define BILDSW 20
+# define BILDSW 19
{ "build", 5 }, /* interface from mhe */
#endif
-
{ NULL, 0 }
};
main(int argc, char **argv)
{
int anot = 0;
- int nedit = 0, nwhat = 0;
+ int nedit = 0;
char *cp, *cwd, *maildir, *file = NULL;
char *folder = NULL, *msg = NULL;
char *ed = NULL, drft[BUFSIZ], buf[BUFSIZ];
*whatnowproc == '-')
adios(NULL, "missing argument to %s",
argp[-2]);
- nwhat = 0;
continue;
#ifdef MHE
case BILDSW:
buildsw++; /* fall... */
-#endif /* MHE */
- case NWHATSW:
- nwhat++;
continue;
+#endif /* MHE */
case FILESW:
if (file)
replout(in, drft, mp, mime, form, filter);
fclose(in);
- if (nwhat)
+ if (buildsw)
done(0);
what_now(ed, nedit, NOUSE, drft, msg, 0, mp, anot ? "Replied" : NULL,
cwd);