X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/de4636bb664106d9932ae7acb517e471b848f1f3..58eaf2c2:/uip/dist.c?ds=inline diff --git a/uip/dist.c b/uip/dist.c index 29820f30..5a35e59a 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -64,7 +64,7 @@ static struct swit aqrl[] = { { "replace", 0, YESW }, { "list", 0, LISTDSW }, { "refile +folder", 0, REFILSW }, - { NULL, 0 } + { NULL, 0, 0 } }; @@ -83,13 +83,7 @@ main (int argc, char **argv) struct msgs *mp = NULL; struct stat st; -#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; } arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -281,7 +275,7 @@ try_it_again: adios (maildir, "unable to change directory to"); /* read folder and create message structure */ - if (!(mp = folder_read (folder))) + if (!(mp = folder_read (folder, 1))) adios (NULL, "unable to read folder %s", folder); /* check for empty folder */