*/
#include <h/mh.h>
+#include "h/done.h"
#include <h/utils.h>
#include "sbr/m_maildir.h"
#include "sbr/m_mktemp.h"
char buf[BUFSIZ], **argp, **arguments;
char *fp;
- if (nmh_init(argv[0], 1)) { return 1; }
+ if (nmh_init(argv[0], true, true)) { return 1; }
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
ambigsw (cp, switches);
done (1);
case UNKWNSW:
- adios (NULL, "-%s unknown", cp);
+ die("-%s unknown", cp);
case HELPSW:
snprintf (buf, sizeof(buf), "%s [+folder] [switches]",
}
if (*cp == '+' || *cp == '@') {
if (folder)
- adios (NULL, "only one folder at a time!");
+ die("only one folder at a time!");
folder = pluspath (cp);
} else {
- adios (NULL, "usage: %s [+folder] [switches]", invo_name);
+ die("usage: %s [+folder] [switches]", invo_name);
}
}
}
fp = m_mailpath(folder);
if (!strcmp(fp, pwd()))
- adios (NULL, "sorry, you can't remove the current working directory");
+ die("sorry, you can't remove the current working directory");
free(fp);
if (interactive == -1)
}
if ((dd = opendir (".")) == NULL)
- adios (NULL, "unable to read folder +%s", folder);
+ die("unable to read folder +%s", folder);
others = 0;
/*