X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhtest.c;h=581349f651f56b9f5b199a61838e1193d0cf32c3;hp=621c701dabf3c50eda1222ae8ea7402002deb98d;hb=097c84b61603c4a4c5837f3dcc09c30a1e751702;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/uip/mhtest.c b/uip/mhtest.c index 621c701..581349f 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(); @@ -284,7 +284,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)