X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fanno.c;h=36ff4b516389516f1e3b95fe90c602660f337976;hp=e97afbf8d83b19b46fb16ac422bf402938b2f99f;hb=426543622b377fc5d091455cba685e114b6df674;hpb=88a0787554de9c618e657c31940e734178a25730 diff --git a/uip/anno.c b/uip/anno.c index e97afbf..36ff4b5 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -162,27 +162,25 @@ main(int argc, char **argv) number = 1; else { - if (strcmp(*argp, "all") == 0) - number = -1; - - else if (!(number = atoi(*argp))) + if (strcmp(*argp, "all") == 0) + number = -1; + else if (!(number = atoi(*argp))) adios(NULL, "missing argument to %s", argp[-2]); - argp++; } delete = number; continue; - case APPENDSW: /* append annotations instead of default prepend */ + case APPENDSW: append = 1; continue; - case PRESERVESW: /* preserve access and modification times on annotated message */ + case PRESERVESW: preserve = 1; continue; - case NOPRESERVESW: /* don't preserve access and modification times on annotated message (default) */ + case NOPRESERVESW: preserve = 0; continue; } @@ -226,15 +224,16 @@ main(int argc, char **argv) if (list) annolist(m_name(msgnum), comp, text, number); else - annotate(m_name(msgnum), comp, text, datesw, delete, append, preserve); + annotate(m_name(msgnum), comp, text, datesw, + delete, append, preserve); } } - context_replace(curfolder, folder); /* update current folder */ - seq_setcur(mp, mp->lowsel); /* update current message */ - seq_save(mp); /* synchronize message sequences */ - folder_free(mp); /* free folder/message structure */ - context_save(); /* save the context file */ + context_replace(curfolder, folder); + seq_setcur(mp, mp->lowsel); + seq_save(mp); + folder_free(mp); + context_save(); done(0); return 1; }