X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e491542da563673b49c6f6df9948ffaffbeed4fb..c8caafcb4a39516eaec330f9ea229ea52e5fe46b:/uip/mark.c?ds=sidebyside diff --git a/uip/mark.c b/uip/mark.c index f0f3d7a6..3972508f 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -1,6 +1,4 @@ - -/* - * mark.c -- add message(s) to sequences in given folder +/* mark.c -- add message(s) to sequences in given folder * -- delete messages (s) from sequences in given folder * -- list sequences in given folder * @@ -52,13 +50,7 @@ main (int argc, char **argv) struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; -#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; @@ -262,12 +254,12 @@ seq_printdebug (struct msgs *mp) int msgnum; char buf[BUFSIZ]; - printf ("\n"); + putchar('\n'); for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) { if (is_selected (mp, msgnum)) printf ("%*d: %s\n", DMAXFOLDER, msgnum, snprintb (buf, sizeof buf, - (unsigned) *bvector_bits (msgstat (mp, msgnum)), + (unsigned) bvector_first_bits (msgstat (mp, msgnum)), seq_bits (mp))); } }