X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f67e3671c985ad8095dc6fcc8be7ba6dd25cdf63..283cbeb60a775eb5fe34e7e11950b0cddd86a6cb:/uip/folder.c?ds=inline diff --git a/uip/folder.c b/uip/folder.c index e4defc70..98ecde68 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -12,7 +12,6 @@ #include #include #include -#include #define FOLDER_SWITCHES \ X("all", 0, ALLSW) \ @@ -102,13 +101,7 @@ main (int argc, char **argv) char *cp, *dp, *msg = NULL, *argfolder = NULL; char **ap, **argp, buf[BUFSIZ], **arguments; -#ifdef LOCALE - setlocale(LC_ALL, ""); -#endif - invo_name = r1bindex (argv[0], '/'); - - /* read user profile/context */ - context_read(); + if (nmh_init(argv[0], 1)) { return 1; } /* * If program was invoked with name ending @@ -403,7 +396,7 @@ get_folder_info_body (char *fold, char *msg, boolean *crawl_children) /* * create message structure and get folder info */ - if (!(mp = folder_read (fold))) { + if (!(mp = folder_read (fold, 1))) { admonish (NULL, "unable to read folder %s", fold); return 0; }