From: Thomas Roessler Date: Wed, 14 Jul 2004 05:07:18 +0000 (+0000) Subject: Some eye-candy during the delayed parsing of maildir folders. X-Git-Tag: mutt-1-5-15-rel~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e63cfa5f12a194f94e4c0555f6a66be9067b66e;p=mutt Some eye-candy during the delayed parsing of maildir folders. --- diff --git a/mh.c b/mh.c index 56265b5f..751cd1a9 100644 --- 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;