]> granicus.if.org Git - mutt/commitdiff
Another consistency fix for maildir_trash.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 11:04:25 +0000 (11:04 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 11:04:25 +0000 (11:04 +0000)
mx.c

diff --git a/mx.c b/mx.c
index d97d2bd76f05f47c15830b0c037327e792ab7277..16de23ed7a8f7c4d73d86d29f44a961b901b44ce 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -1059,14 +1059,15 @@ void mx_update_tables(CONTEXT *ctx, int committing)
          this_body->hdr_offset;
       }
 
-      if(committing)
+      if (committing)
        ctx->hdrs[j]->changed = 0;
-      else
+      else if (ctx->hdrs[j]->changed)
+       ctx->changed++;
+      
+      if (!committing || (ctx->magic == M_MAILDIR && option (OPTMAILDIRTRASH)))
       {
        if (ctx->hdrs[j]->deleted)
          ctx->deleted++;
-       if (ctx->hdrs[j]->changed)
-         ctx->changed++;
       }
 
       if (ctx->hdrs[j]->tagged)