]> granicus.if.org Git - mutt/commitdiff
Some eye-candy during the delayed parsing of maildir folders.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 14 Jul 2004 05:07:18 +0000 (05:07 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 14 Jul 2004 05:07:18 +0000 (05:07 +0000)
mh.c

diff --git a/mh.c b/mh.c
index 56265b5fb5efe72dd3c75ccfcaef1d98436e4f83..751cd1a97d1fe4e4d585866a598d9284344b3306 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -789,10 +789,13 @@ void maildir_delayed_parsing (CONTEXT * ctx, struct maildir *md)
 {
   struct maildir *p;
   char fn[_POSIX_PATH_MAX];
+  int count;
 
-  for (p = md; p; p = p->next)
+  for (p = md, count = 0; p; p = p->next, count++)
     if (p && p->h && !p->header_parsed)
     {
+      if (!ctx->quiet && ReadInc && ((count % ReadInc) == 0 || count == 1))
+       mutt_message (_("Reading %s... %d"), ctx->path, count);
       snprintf (fn, sizeof (fn), "%s/%s", ctx->path, p->h->path);
       if (maildir_parse_message (ctx->magic, fn, p->h->old, p->h))
        p->header_parsed = 1;