#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* read user profile/context */
context_read();
foldersToDo = (char **) mh_xrealloc(foldersToDo, (size_t) (maxfolders * sizeof(*foldersToDo)));
}
if (*cp == '+' || *cp == '@') {
- foldersToDo[numfolders++] =
- pluspath(cp);
+ foldersToDo[numfolders++] = pluspath(cp);
} else
foldersToDo[numfolders++] = cp;
}
}
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/* get current folder */
- strncpy(curfolder, getfolder(1), sizeof(curfolder));
+ strncpy(curfolder, getfolder(FCUR), sizeof(curfolder));
/* get nmh base directory */
nmhdir = m_maildir("");