summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-06-07 15:02:58 -0700
committerKevin McCarthy <kevin@8t8.us>2016-06-07 15:02:58 -0700
commit04a6356bd34c855ddebd75d3820887c64ee793b0 (patch)
tree7661dd213476946c96b9c9671d24340b6397751c /mbox.c
parentf4f53521f46abbd138be32b239a9f34f1a8bfb3e (diff)
Make extended buffy independent of the sidebar.
Add new boolean option $mail_check_stats (default off) and $mail_check_stats_interval. The first turns extended buffy on. The second sets the amount of time in between extended buffy checks (defaulting to 60 seconds). Remove the option $sidebar_refresh_time. Change mutt_buffy_check() to only notify the sidebar to redraw if a mailbox buffy value changes. Remove the #ifdefs around the extended buffy functions. The next patch will merge these functions with the basic functions and pass a parameter instead. Imap is a special case, because it sends out the status in one batch. Change this to perform the comparisons inside cmd_parse_status() and flag the sidebar there. It was previously directly assigning the status counters (unsigned int) to the buffy->new (short). Change this to assign 1/0.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mbox.c b/mbox.c
index 3d071dc4..b3ee560b 100644
--- a/mbox.c
+++ b/mbox.c
@@ -100,9 +100,7 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
mutt_perror (ctx->path);
return (-1);
}
-#ifdef USE_SIDEBAR
ctx->atime = sb.st_atime;
-#endif
ctx->mtime = sb.st_mtime;
ctx->size = sb.st_size;
@@ -254,9 +252,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
ctx->size = sb.st_size;
ctx->mtime = sb.st_mtime;
-#ifdef USE_SIDEBAR
ctx->atime = sb.st_atime;
-#endif
#ifdef NFS_ATTRIBUTE_HACK
if (sb.st_mtime > sb.st_atime)