/* If no folder is given, the current folder and */
/* the top of the folder stack are swapped. */
if ((cp = context_find (stack))) {
/* If no folder is given, the current folder and */
/* the top of the folder stack are swapped. */
if ((cp = context_find (stack))) {
ap = brkstring (dp, " ", "\n");
argfolder = getcpy(*ap++);
} else {
ap = brkstring (dp, " ", "\n");
argfolder = getcpy(*ap++);
} else {
if (argfolder)
adios (NULL, "sorry, no folders allowed with -pop");
if ((cp = context_find (stack))) {
if (argfolder)
adios (NULL, "sorry, no folders allowed with -pop");
if ((cp = context_find (stack))) {
ap = brkstring (dp, " ", "\n");
argfolder = getcpy(*ap++);
} else {
ap = brkstring (dp, " ", "\n");
argfolder = getcpy(*ap++);
} else {
if (listsw) {
printf ("%s", argfolder ? argfolder : getfolder (1));
if ((cp = context_find (stack))) {
if (listsw) {
printf ("%s", argfolder ? argfolder : getfolder (1));
if ((cp = context_find (stack))) {
* Check if folder exists. If not, then see if
* we should create it, or just exit.
*/
* 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 */
snprintf (atrcur, sizeof(atrcur), "atr-%s-", current);
atrlen = strlen (atrcur);
snprintf (atrcur, sizeof(atrcur), "atr-%s-", current);
atrlen = strlen (atrcur);