X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhshow.c;h=42e0ee06867d8a99fcf1d974d79eec250b9d1f46;hb=5048c3273f8780b3d73e81d0ea5b434f53a83f9f;hp=ea66f32a8a3a4048cc9382d057bc9e856d99c0af;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/uip/mhshow.c b/uip/mhshow.c index ea66f32..42e0ee0 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -147,7 +147,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(); @@ -340,9 +340,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!"); @@ -363,7 +360,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)