]> granicus.if.org Git - neomutt/commitdiff
Cosmetic improvement for reading mmdf folders. From John Hawkinson
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 6 Dec 1999 09:59:28 +0000 (09:59 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 6 Dec 1999 09:59:28 +0000 (09:59 +0000)
<jhawk@bbnplanet.com>.

mbox.c

diff --git a/mbox.c b/mbox.c
index 07dc7e6ab3cb1129d7c952114187e797a4a4a58a..79be39136159768859aafffc620007c8fb6538a2 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -79,6 +79,7 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
 {
   char buf[HUGE_STRING];
   char return_path[LONG_STRING];
+  int count = 0;
   int lines;
   time_t t, tz;
   long loc, tmploc;
@@ -119,6 +120,12 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
     if (mutt_strcmp (buf, ctx->magic == M_MMDF ? MMDF_SEP : KENDRA_SEP) == 0)
     {
       loc = ftell (ctx->fp);
+      
+      count++;
+      if (!ctx->quiet && ReadInc && ((count % ReadInc == 0) || count == 1))
+       mutt_message (_("Reading %s... %d (%d%%)"), ctx->path, count,
+                     loc / (ctx->size / 100 + 1));
+
 
       if (ctx->msgcount == ctx->hdrmax)
        mx_alloc_memory (ctx);