X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fanno.c;h=e97afbf8d83b19b46fb16ac422bf402938b2f99f;hp=aacd82676fb533518ce56d9fa9781e852f80f3d0;hb=88a0787554de9c618e657c31940e734178a25730;hpb=c8195849d2e366c569271abb0f5f60f4ebf0b4d0 diff --git a/uip/anno.c b/uip/anno.c index aacd826..e97afbf 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -80,6 +80,7 @@ int main(int argc, char **argv) { int datesw = 1; + int preserve = 0; int msgnum; char *cp, *maildir; unsigned char *comp = NULL; @@ -178,11 +179,11 @@ main(int argc, char **argv) continue; case PRESERVESW: /* preserve access and modification times on annotated message */ - annopreserve(1); + preserve = 1; continue; case NOPRESERVESW: /* don't preserve access and modification times on annotated message (default) */ - annopreserve(0); + preserve = 0; continue; } } @@ -225,7 +226,7 @@ main(int argc, char **argv) if (list) annolist(m_name(msgnum), comp, text, number); else - annotate(m_name(msgnum), comp, text, datesw, delete, append); + annotate(m_name(msgnum), comp, text, datesw, delete, append, preserve); } }