summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-12-06 09:59:28 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-12-06 09:59:28 +0000
commitc3da5f701a55beffe29d1723b4fda8705be558b7 (patch)
tree25228ef00e9709a3f3081aaefeb8355381d0611f /mbox.c
parenta7334f82c2144d8168fec90af849efcbb68987b4 (diff)
Cosmetic improvement for reading mmdf folders. From John Hawkinson
<jhawk@bbnplanet.com>.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mbox.c b/mbox.c
index 07dc7e6a..79be3913 100644
--- 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);