X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhtest.c;h=454fa1d43933085ca7179b9333fb7eb13070ec33;hb=5048c3273f8780b3d73e81d0ea5b434f53a83f9f;hp=621c701dabf3c50eda1222ae8ea7402002deb98d;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/uip/mhtest.c b/uip/mhtest.c index 621c701..454fa1d 100644 --- a/uip/mhtest.c +++ b/uip/mhtest.c @@ -127,7 +127,7 @@ main(int argc, char **argv) #ifdef LOCALE setlocale(LC_ALL, ""); #endif - invo_name = r1bindex(argv[0], '/'); + invo_name = mhbasename(argv[0]); /* read user profile/context */ context_read(); @@ -261,9 +261,6 @@ do_cache: 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!"); @@ -284,7 +281,7 @@ do_cache: if (!msgs.size) app_msgarg(&msgs, "cur"); if (!folder) - folder = getfolder(1); + folder = getfolder(FCUR); maildir = m_maildir(folder); if (chdir(maildir) == NOTOK)