#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* read user profile/context */
context_read();
else
tmp = add(m_maildir(invo_name), NULL);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
if (!msgs.size)
app_msgarg(&msgs, "cur");
if (!folder)
- folder = getfolder(1);
+ folder = getfolder(FCUR);
maildir = m_maildir(folder);
if (chdir(maildir) == NOTOK)