X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmark.c;h=d4a3729ecdbdeea65941b385d05e5e3a39bd3dae;hb=10e03b3fba3e01052baf92c963c46a2a5529b4e0;hp=5fd27f665632e4367b6bb8e0ce75c6415a424948;hpb=d39e2c447b0d163a5a63f480b23d06edb7a73aa0;p=mmh diff --git a/uip/mark.c b/uip/mark.c index 5fd27f6..d4a3729 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -23,13 +23,13 @@ static struct swit switches[] = { #define PUBLSW 4 { "public", 0 }, #define NPUBLSW 5 - { "nopublic", 0 }, + { "nopublic", 2 }, #define ZEROSW 6 { "zero", 0 }, #define NZEROSW 7 - { "nozero", 0 }, + { "nozero", 2 }, #define VERSIONSW 8 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 9 { "help", 0 }, #define DEBUGSW 10 @@ -48,17 +48,15 @@ int main(int argc, char **argv) { int addsw = 0, deletesw = 0, debugsw = 0; - int listsw = 0, publicsw = -1, zerosw = 0; - int seqp = 0, msgnum; + int listsw = 0, publicsw = -1, zerosw = 0, msgnum; + unsigned int seqp = 0; char *cp, *maildir, *folder = NULL, buf[BUFSIZ]; char **argp, **arguments; char *seqs[NUMATTRS + 1]; struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ @@ -152,7 +150,7 @@ main(int argc, char **argv) } if (!msgs.size) - app_msgarg(&msgs, listsw ? "all" :"cur"); + app_msgarg(&msgs, listsw ? seq_all : seq_cur); if (!folder) folder = getcurfol(); maildir = toabsdir(folder); @@ -221,7 +219,7 @@ main(int argc, char **argv) } seq_save(mp); /* synchronize message sequences */ - context_replace(pfolder, folder); /* update current folder */ + context_replace(curfolder, folder); /* update current folder */ context_save(); /* save the context file */ folder_free(mp); /* free folder/message structure */ done(0);