diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-06 09:59:28 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-06 09:59:28 +0000 |
commit | c3da5f701a55beffe29d1723b4fda8705be558b7 (patch) | |
tree | 25228ef00e9709a3f3081aaefeb8355381d0611f /mbox.c | |
parent | a7334f82c2144d8168fec90af849efcbb68987b4 (diff) |
Cosmetic improvement for reading mmdf folders. From John Hawkinson
<jhawk@bbnplanet.com>.
Diffstat (limited to 'mbox.c')
-rw-r--r-- | mbox.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |