]> granicus.if.org Git - mutt/commitdiff
[patch-0.94.4i.matthewf.writingmessages-fix.1] Fix the
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 7 Sep 1998 09:15:04 +0000 (09:15 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 7 Sep 1998 09:15:04 +0000 (09:15 +0000)
display when synchronizing mbox mail folders.

mbox.c

diff --git a/mbox.c b/mbox.c
index d5ef5f566fefc4dfa2d95fc15d97294a9932c623..b43319c2baca8a3811d8d1585fd3571a689689a5 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -731,8 +731,8 @@ int mbox_sync_mailbox (CONTEXT *ctx)
     if (! ctx->hdrs[i]->deleted)
     {
       j++;
-      if (!ctx->quiet && WriteInc && ((j % WriteInc) == 0 || j == 1))
-       mutt_message ("Writing messages... %d (%d%%)", j,
+      if (!ctx->quiet && WriteInc && ((i % WriteInc) == 0 || j == 1))
+       mutt_message ("Writing messages... %d (%d%%)", i,
                      ftell (ctx->fp) / (ctx->size / 100 + 1));
 
       if (ctx->magic == M_MMDF)