X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fmhlist.c;h=5eb0937c9b80231d6e93fbc1a2064fdf7a9dad64;hb=097c84b61603c4a4c5837f3dcc09c30a1e751702;hp=9ec8f5d9983f8a5dbb8d20dc91632e7dac6924c9;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/uip/mhlist.c b/uip/mhlist.c index 9ec8f5d..5eb0937 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -131,7 +131,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(); @@ -291,7 +291,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)