#include <h/mime.h>
#include <h/mhparse.h>
#include <h/mhcachesbr.h>
+#include "h/done.h"
#include <h/utils.h>
#include "mhmisc.h"
#include "sbr/m_maildir.h"
if (nmh_init(argv[0], 1)) { return 1; }
- done=freects_done;
+ set_done(freects_done);
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
if (!(cp = *argp++) || *cp == '-')
adios (NULL, "missing argument to %s", argp[-2]);
free(formsw);
- formsw = getcpy (etcpath (cp));
+ formsw = mh_xstrdup(etcpath(cp));
continue;
/*
/* Check for private cache location */
if (!(cache_private = context_find (nmhprivcache)))
cache_private = ".cache";
- cache_private = getcpy (m_maildir (cache_private));
+ cache_private = mh_xstrdup(m_maildir(cache_private));
/*
* Cache the current directory before we do any chdirs()'s.