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-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",
--with-locking=LOCKTYPE (DEFAULT is dot)
Specify the locking mechanism when attempting to "inc" or
"msgchk" a local mail spool. Valid options are "dot",
-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.])
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
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.
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.
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.
(context, no default)
.RE
.PP
(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
.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
.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.
It causes a file
.I reply (in the mail storage root)
to be created, containing the draft message that would normally be presented
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
.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.
switch (dp->d_name[0]) {
case '.':
case ',':
switch (dp->d_name[0]) {
case '.':
case ',':
-#ifdef MHE
- case '+':
-#endif /* MHE */
{ "version", 0 },
#define HELPSW 9
{ "help", 0 },
{ "version", 0 },
#define HELPSW 9
{ "help", 0 },
#define BILDSW 12
{ "build", 5 }, /* interface from mhe */
#define BILDSW 12
{ "build", 5 }, /* interface from mhe */
char *form = NULL, buf[BUFSIZ], value[10];
char **argp, **arguments, *msgs[MAXARGS];
char *fmtstr;
char *form = NULL, buf[BUFSIZ], value[10];
char **argp, **arguments, *msgs[MAXARGS];
char *fmtstr;
#ifdef LOCALE
setlocale(LC_ALL, "");
#ifdef LOCALE
setlocale(LC_ALL, "");
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
- buildsw++; /* fall... */
case FORMSW:
if (!(form = *argp++) || *form == '-')
case FORMSW:
if (!(form = *argp++) || *form == '-')
-
-#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.
/*
** Forwarding a message.
/* copy of mail directory because the static gets overwritten */
char *maildir_copy = NULL;
/* copy of mail directory because the static gets overwritten */
char *maildir_copy = NULL;
-#ifdef MHE
- FILE *mhe = NULL;
-#endif
-
-#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);
/* Get new format string */
fmtstr = new_fs(form, FORMAT);
if (aud)
fputs(scanl, aud);
if (aud)
fputs(scanl, aud);
-#ifdef MHE
- if (mhe)
- fputs(scanl, mhe);
-#endif /* MHE */
if (noisy)
fflush(stdout);
msgnum++;
if (noisy)
fflush(stdout);
msgnum++;
-#ifdef MHE
- if (mhe)
- fclose(mhe);
-#endif /* MHE */
-
if (noisy)
fflush(stdout);
if (noisy)
fflush(stdout);
{ "help", 0 },
#define FILESW 17
{ "file file", 4 }, /* interface from msh */
{ "help", 0 },
#define FILESW 17
{ "file file", 4 }, /* interface from msh */
# define BILDSW 18
{ "build", 5 }, /* interface from mhe */
# define BILDSW 18
{ "build", 5 }, /* interface from mhe */
char **argp, **arguments;
struct msgs *mp = NULL;
FILE *in;
char **argp, **arguments;
struct msgs *mp = NULL;
FILE *in;
filter = getcpy(etcpath(mhlreply));
filter = getcpy(etcpath(mhlreply));
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
- buildsw++; /* fall... */
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
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
+ */
continue; /* else fall */
case ',':
continue; /* else fall */
case ',':
-#ifdef MHE
- case '+':
-#endif /* MHE */