+#include "h/mh.h"
+#include "sbr/getarguments.h"
+#include "sbr/smatch.h"
+#include "sbr/context_find.h"
+#include "sbr/ambigsw.h"
+#include "sbr/print_version.h"
+#include "sbr/print_help.h"
+#include "sbr/error.h"
+#include "h/mts.h"
+#include "h/done.h"
+#include "h/utils.h"
#define MHPARAM_SWITCHES \
X("components", 0, COMPSW) \
#define MHPARAM_SWITCHES \
X("components", 0, COMPSW) \
{ "mimeencodingproc", &mimeencodingproc },
{ "moreproc", &moreproc },
{ "msgprot", &msgprot },
{ "mimeencodingproc", &mimeencodingproc },
{ "moreproc", &moreproc },
{ "msgprot", &msgprot },
{ "packproc", &packproc },
{ "postproc", &postproc },
{ "rmmproc", &rmmproc },
{ "packproc", &packproc },
{ "postproc", &postproc },
{ "rmmproc", &rmmproc },
{ "showmimeproc", &showmimeproc },
{ "showproc", &showproc },
{ "version", &version_num },
{ "showmimeproc", &showmimeproc },
{ "showproc", &showproc },
{ "version", &version_num },
{ "whatnowproc", &whatnowproc },
{ "whomproc", &whomproc },
{ "whatnowproc", &whatnowproc },
{ "whomproc", &whomproc },
- { "libdir", &mhlibdir },
+ { "docdir", &mhdocdir },
+ { "localmbox", &localmbox },
{ "sbackup", &sbackup },
{ "datalocking", &datalocking },
{ "spoollocking", &spoollocking },
{ "sbackup", &sbackup },
{ "datalocking", &datalocking },
{ "spoollocking", &spoollocking },
int components = -1;
char *cp, buf[BUFSIZ], **argp;
char **arguments, *comps[MAXARGS];
int components = -1;
char *cp, buf[BUFSIZ], **argp;
char **arguments, *comps[MAXARGS];
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
case HELPSW:
snprintf (buf, sizeof(buf), "%s [profile-components] [switches]",
case HELPSW:
snprintf (buf, sizeof(buf), "%s [profile-components] [switches]",
for (np = m_defs; np; np = np->n_next)
printf("%s: %s\n", np->n_name, np->n_field);
for (np = m_defs; np; np = np->n_next)
printf("%s: %s\n", np->n_name, np->n_field);
+ /* In case spoollocking was set in mts.conf. */
+ mts_init();
+
+ /* Also set localmbox here */
+ if (! localmbox_primed) {
+ localmbox = getlocalmbox();
+ localmbox_primed = true;
+ }
+
/*
* Print the current value of everything in
* procs array. This will show their current
* value (as determined after context is read).
*/
for (ps = procs; ps->p_name; ps++)
/*
* Print the current value of everything in
* procs array. This will show their current
* value (as determined after context is read).
*/
for (ps = procs; ps->p_name; ps++)