to be compiled by default, and garbage collect the stuff that is not used.
Pulled in from nmh. Thanks to Ken Hornstein.
Concerning mmh only:
- The FIXME comments about the missing checks for existing drafts.
- mh-e support of mmh is not much more than providing the -build switches.
It might get dropped in the future.
--enable-debug
Enable debugging support.
---enable-mhe (DEFAULT)
- Add support for the Emacs front-end `mhe'.
-
--with-locking=LOCKTYPE (DEFAULT is dot)
Specify the locking mechanism when attempting to "inc" or
"msgchk" a local mail spool. Valid options are "dot",
enable_debug=yes
fi
-dnl Do you want mhe support?
-AC_ARG_ENABLE(mhe,
- AS_HELP_STRING([--disable-mhe],[disable mhe support]))
-
-dnl mhe support is on by default, so define it unless --disable-mhe or the
-dnl deprecated, undocumented --disable-nmh-mhe are specified.
-if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
- AC_DEFINE(MHE, 1,
- [Define to compile in support for the Emacs front-end mh-e.])dnl
-fi
-
dnl Do you want to disable use of locale functions
AH_TEMPLATE([LOCALE],
[Undefine if you don't want locale features. By default this is defined.])
The
.B \-build
switch is intended to be used by the Emacs mh-e interface to
-.BR nmh ,
-and is only present if
-.B nmh
-was compiled with support for mh-e.
+.BR nmh .
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 :
-it is documented here only for completeness.
+No mail is actually sent.
.PP
The
.B \-digest
(context, no default)
.RE
.PP
-.BR mhe :
-.RS 5
-If present, tells
-.B inc
-to compose an
-.I MHE
-auditfile in addition to its other tasks.
-.I MHE
-is Brian Reid's
-.B emacs
-front-end for
-.BR mmh .
-(profile, no default)
-.RE
-.PP
.BR Alternate\-Mailboxes :
mh@uci\-750a, bug-mh*
.RS 5
.B \-build
switch is intended to be used by the Emacs mh-e interface
to
-.BR nmh ,
-and is only present if
-.B nmh
-was compiled with support
-for mh-e.
+.BR nmh .
It causes a file
.I reply (in the mail storage root)
to be created, containing the draft message that would normally be presented
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 :
-it is documented here only for completeness.
+No mail is actually sent.
.PP
The
.B \-file
switch (dp->d_name[0]) {
case '.':
case ',':
-#ifdef MHE
- case '+':
-#endif /* MHE */
continue;
default:
{ "version", 0 },
#define HELPSW 9
{ "help", 0 },
-
-#ifdef MHE
#define BILDSW 12
{ "build", 5 }, /* interface from mhe */
-#endif /* MHE */
-
{ NULL, 0 }
};
char *form = NULL, buf[BUFSIZ], value[10];
char **argp, **arguments, *msgs[MAXARGS];
char *fmtstr;
-
-#ifdef MHE
int buildsw = 0;
-#endif /* MHE */
#ifdef LOCALE
setlocale(LC_ALL, "");
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
-#ifdef MHE
+
case BILDSW:
- buildsw++; /* fall... */
+ buildsw++;
continue;
-#endif /* MHE */
case FORMSW:
if (!(form = *argp++) || *form == '-')
}
cwd = getcpy(pwd());
-
-#ifdef MHE
- strncpy(drft, buildsw ? toabsdir("draft")
- : m_draft(seq_beyond), sizeof(drft));
-#else
- strncpy(drft, m_draft(seq_beyond), sizeof(drft));
-#endif /* MHE */
+ strncpy(drft, buildsw ? toabsdir("draft") : m_draft(seq_beyond),
+ sizeof(drft));
+ /*
+ ** FIXME: (concerning MHE support (buildsw) only)
+ ** There's no check if the draft already exists. mmh has removed
+ ** this case by having the draft folder. I won't add code only to
+ ** handle this legacy issue for MHE. -- meillo@marmaro.de 2012-05
+ */
/*
** Forwarding a message.
/* copy of mail directory because the static gets overwritten */
char *maildir_copy = NULL;
-#ifdef MHE
- FILE *mhe = NULL;
-#endif
-
done=inc_done;
/*
dtimenow(), from);
}
-#ifdef MHE
- if (context_find("mhe")) {
- int i;
- cp = concat(maildir, "/++", NULL);
- i = stat(cp, &st);
- if ((mhe = fopen(cp, "a")) == NULL)
- admonish(cp, "unable to append to");
- else
- if (i == NOTOK)
- chmod(cp, m_gmprot());
- free(cp);
- }
-#endif /* MHE */
-
/* Get new format string */
fmtstr = new_fs(form, FORMAT);
if (aud)
fputs(scanl, aud);
-#ifdef MHE
- if (mhe)
- fputs(scanl, mhe);
-#endif /* MHE */
if (noisy)
fflush(stdout);
msgnum++;
if (aud)
fclose(aud);
-#ifdef MHE
- if (mhe)
- fclose(mhe);
-#endif /* MHE */
-
if (noisy)
fflush(stdout);
{ "help", 0 },
#define FILESW 17
{ "file file", 4 }, /* interface from msh */
-#ifdef MHE
# define BILDSW 18
{ "build", 5 }, /* interface from mhe */
-#endif
{ NULL, 0 }
};
char **argp, **arguments;
struct msgs *mp = NULL;
FILE *in;
-
-#ifdef MHE
int buildsw = 0;
-#endif /* MHE */
filter = getcpy(etcpath(mhlreply));
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
-#ifdef MHE
+
case BILDSW:
- buildsw++; /* fall... */
+ buildsw++;
continue;
-#endif /* MHE */
case FILESW:
if (file)
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
-#ifdef MHE
- strncpy(drft, buildsw ? toabsdir("reply")
- : m_draft(seq_beyond), sizeof(drft));
-#else
- strncpy(drft, m_draft(seq_beyond), sizeof(drft));
-#endif /* MHE */
+ strncpy(drft, buildsw ? toabsdir("reply") : m_draft(seq_beyond),
+ sizeof(drft));
+ /*
+ ** FIXME: (concerning MHE support (buildsw) only)
+ ** There's no check if the draft already exists. mmh has removed
+ ** this case by having the draft folder. I won't add code only to
+ ** handle this legacy issue for MHE. -- meillo@marmaro.de 2012-05
+ */
if (file) {
/*
continue; /* else fall */
case ',':
-#ifdef MHE
- case '+':
-#endif /* MHE */
break;
default: