The existence of the profile entry Path is already enforced by context_read().
[mmh] / uip / burst.c
index 374eff5..44f6bfe 100644 (file)
@@ -56,7 +56,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();
@@ -113,12 +113,10 @@ main(int argc, char **argv)
                }
        }
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
        if (!msgp)
                msgs[msgp++] = "cur";
        if (!folder)
-               folder = getfolder(1);
+               folder = getfolder(FCUR);
        maildir = m_maildir(folder);
 
        if (chdir(maildir) == NOTOK)