if (folder)
adios(NULL, "only one folder at a time!");
else
- folder = pluspath(cp);
+ folder = getcpy(expandfol(cp));
} else {
if (msg)
adios(NULL, "only one message at a time!");
cwd = getcpy(pwd());
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (form && (folder || msg))
adios(NULL, "can't mix forms and folders/msgs");
if (!msg)
msg = "cur";
if (!folder)
- folder = getfolder(FCUR);
- maildir = m_maildir(folder);
+ folder = getcurfol();
+ maildir = toabsdir(folder);
if (chdir(maildir) == NOTOK)
adios(maildir, "unable to change directory to");