#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* read user profile/context */
context_read();
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("");