- if (!context_find("path"))
- free(path("./", TFOLDER));
- nmhdir = concat(m_maildir(""), "/", NULL);
+ nmhdir = concat(toabsdir("+"), "/", NULL);
cp = add(*ap, add(" ", cp));
free(dp);
context_replace(stack, cp); /* update folder stack */
} else {
/* update folder stack */
context_replace(stack, (cp = context_find (stack)) ?
cp = add(*ap, add(" ", cp));
free(dp);
context_replace(stack, cp); /* update folder stack */
} else {
/* update folder stack */
context_replace(stack, (cp = context_find (stack)) ?
- concat(getfolder(1), " ", cp, NULL) :
- getcpy(getfolder(1)));
+ concat(getcurfol(), " ", cp, NULL) :
+ getcpy(getcurfol()));
if (access(cp, F_OK) == NOTOK)
adios(cp, "unable to find folder");
/* update current folder */
if (access(cp, F_OK) == NOTOK)
adios(cp, "unable to find folder");
/* update current folder */
if ((cp = context_find(stack))) {
dp = getcpy(cp);
for (ap = brkstring(dp, " ", "\n"); *ap; ap++)
if ((cp = context_find(stack))) {
dp = getcpy(cp);
for (ap = brkstring(dp, " ", "\n"); *ap; ap++)
if (msg)
admonish(NULL, "no folder given for message %s", msg);
readonly_folders(); /* do any readonly folders */
if (msg)
admonish(NULL, "no folder given for message %s", msg);
readonly_folders(); /* do any readonly folders */
cp : "", sizeof(folder));
crawl_folders(".", get_folder_info_callback, NULL);
} else {
strncpy(folder, argfolder, sizeof(folder));
if (get_folder_info(argfolder, msg)) {
/* update current folder */
cp : "", sizeof(folder));
crawl_folders(".", get_folder_info_callback, NULL);
} else {
strncpy(folder, argfolder, sizeof(folder));
if (get_folder_info(argfolder, msg)) {
/* update current folder */
sizeof(folder));
/*
** Check if folder exists. If not, then see if
** we should create it, or just exit.
*/
sizeof(folder));
/*
** Check if folder exists. If not, then see if
** we should create it, or just exit.
*/
if (get_folder_info(folder, msg) && argfolder) {
/* update current folder */
if (get_folder_info(folder, msg) && argfolder) {
/* update current folder */