Completely reworked the path convertion functions
[mmh] / uip / install-mh.c
index 11f7bc5..1fb6834 100644 (file)
@@ -102,7 +102,7 @@ main(int argc, char **argv)
        */
 
        if ((cp = getenv("MH")) && *cp != '\0')
-               defpath = path(cp, TFILE);
+               defpath = getcpy(expanddir(cp));
        else
                defpath = concat(mypath, "/", mh_profile, NULL);
 
@@ -198,7 +198,7 @@ query:
                fclose(in);
        }
 
-       ctxpath = getcpy(m_maildir(context = "context"));
+       ctxpath = getcpy(toabsdir(context = "context"));
 
        /* Initialize current folder to default */
        context_replace(pfolder, defaultfolder);