X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhbuild.c;h=bf6f646f3d6ac8d8a5ae5496755274fdb42acfdd;hp=e1ca05fbb5147453a767075ee534c33d58be0dde;hb=d39e2c447b0d163a5a63f480b23d06edb7a73aa0;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/uip/mhbuild.c b/uip/mhbuild.c index e1ca05f..bf6f646 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -130,7 +130,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(); @@ -283,7 +283,7 @@ main(int argc, char **argv) /* Check for private cache location */ if (!(cache_private = context_find(nmhprivcache))) cache_private = ".cache"; - cache_private = getcpy(m_maildir(cache_private)); + cache_private = getcpy(toabsdir(cache_private)); /* ** Check for storage directory. If defined, we @@ -293,10 +293,7 @@ main(int argc, char **argv) if ((cp = context_find(nmhstorage)) && *cp) tmp = concat(cp, "/", invo_name, NULL); else - tmp = add(m_maildir(invo_name), NULL); - - if (!context_find("path")) - free(path("./", TFOLDER)); + tmp = getcpy(toabsdir(invo_name)); /* Check if we have a file to process */ if (!compfile)