anno: Undid the ``preserve argument hack''.
[mmh] / uip / anno.c
index aacd826..e97afbf 100644 (file)
@@ -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);
                }
        }