X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmark.c;h=79763ff232235ac3da672790fa43a0f19a621823;hp=03818f328f599c9107c8d93dc34bdb692cc7a7f3;hb=0b40f7c1c35770622511eda71ec5353784ea1dc6;hpb=5048c3273f8780b3d73e81d0ea5b434f53a83f9f diff --git a/uip/mark.c b/uip/mark.c index 03818f3..79763ff 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -134,7 +134,7 @@ main(int argc, char **argv) if (folder) adios(NULL, "only one folder at a time!"); else - folder = pluspath(cp); + folder = getcpy(expandfol(cp)); } else app_msgarg(&msgs, cp); } @@ -152,10 +152,10 @@ main(int argc, char **argv) } if (!msgs.size) - app_msgarg(&msgs, listsw ? "all" :"cur"); + app_msgarg(&msgs, listsw ? seq_all : seq_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"); @@ -221,7 +221,7 @@ main(int argc, char **argv) } seq_save(mp); /* synchronize message sequences */ - context_replace(pfolder, folder); /* update current folder */ + context_replace(curfolder, folder); /* update current folder */ context_save(); /* save the context file */ folder_free(mp); /* free folder/message structure */ done(0);