From: Brendan Cully Date: Fri, 13 Apr 2007 03:11:49 +0000 (-0700) Subject: Differentiate between first and second maildir passes in progress indicator X-Git-Tag: mutt-1-5-16-rel~22^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30310cb15fe3fbc47bdf01c4f2732c4f2be9fb3b;p=mutt Differentiate between first and second maildir passes in progress indicator --- diff --git a/ChangeLog b/ChangeLog index 72338a1f..ecb81c4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -2007-04-12 11:54 -0700 Brendan Cully (3ee4effbb8e8) +2007-04-12 17:55 -0700 Brendan Cully (73894f3f1943) + + * mh.c: Only call mutt_set_flag when necessary when checking for + maildir changes (fixes #1216) + + * flags.c: Only update header color in mutt_set_flag if flag has + changed (see #1216, #1931) * init.h: Make $header_cache_compress default to set diff --git a/mh.c b/mh.c index 3d60804b..3d15dc4c 100644 --- a/mh.c +++ b/mh.c @@ -1072,7 +1072,10 @@ int mh_read_dir (CONTEXT * ctx, const char *subdir) progress_t progress; memset (&mhs, 0, sizeof (mhs)); - snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path); + if (ctx->magic == M_MAILDIR) + snprintf (msgbuf, sizeof (msgbuf), _("Scanning %s..."), ctx->path); + else + snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path); mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0); if (!ctx->data) @@ -1102,7 +1105,11 @@ int mh_read_dir (CONTEXT * ctx, const char *subdir) #endif /* USE_INODESORT */ if (ctx->magic == M_MAILDIR) + { + snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path); + mutt_progress_init (&progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0); maildir_delayed_parsing (ctx, md, &progress); + } maildir_move_to_context (ctx, &md);