#include <pwd.h>
#include <setjmp.h>
-#include <signal.h>
#include <h/msh.h>
#include <h/vmhsbr.h>
char *cp, *file = NULL, *folder = NULL;
char **argp, **arguments, buf[BUFSIZ];
-#ifdef LOCALE
setlocale(LC_ALL, "");
-#endif
invo_name = r1bindex (argv[0], '/');
/* read user profile/context */
padios (maildir, "unable to change directory to");
/* read folder and create message structure */
- if (!(mp = folder_read (folder)))
+ if (!(mp = folder_read (folder, 0)))
padios (NULL, "unable to read folder %s", folder);
/* check for empty folder */
}
m_init ();
- mp->msgattrs[0] = getcpy ("unseen");
- mp->msgattrs[1] = NULL;
+ svector_push_back (mp->msgattrs, getcpy ("unseen"));
scan_detect_mbox_style (fp); /* the MAGIC invocation */
if (fmsh) {
low = mp->hghmsg + 1;
folder_free (mp); /* free folder/message structure */
- if (!(mp = folder_read (fmsh)))
+ if (!(mp = folder_read (fmsh, 0)))
padios (NULL, "unable to re-read folder %s", fmsh);
hgh = mp->hghmsg;
switch (state = m_getfld (&gstate, name, buf, &bufsz, zp)) {
case FLD:
case FLDPLUS:
- if (!mh_strcasecmp (name, BBoard_ID)) {
+ if (!strcasecmp (name, BBoard_ID)) {
bp = getcpy (buf);
while (state == FLDPLUS) {
bufsz = sizeof buf;