summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2018-06-28 20:17:23 -0700
committerKevin McCarthy <kevin@8t8.us>2018-06-28 20:17:23 -0700
commitac7e28906c1c55f98a955f58367734801e4d26e5 (patch)
tree58f83b692c0406f4a42b3c4dd0459bd908075b35 /curs_main.c
parent0e34a489f8763c833d150ef6f895419838082699 (diff)
Add check-stats function to calculate mailbox statistics.
This allows the statistics to be updated without setting $mail_check_stats or before $mail_check_stats_interval has passed.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/curs_main.c b/curs_main.c
index c149d4a9..703a0660 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -579,8 +579,10 @@ int mutt_index_menu (void)
menu->custom_menu_redraw = index_menu_redraw;
mutt_push_current_menu (menu);
- if (!attach_msg)
- mutt_buffy_check(1); /* force the buffy check after we enter the folder */
+ if (!attach_msg) {
+ mutt_buffy_check(MUTT_BUFFY_CHECK_FORCE); /* force the buffy check after we
+ enter the folder */
+ }
#ifdef USE_INOTIFY
mutt_monitor_add (NULL);
#endif
@@ -1339,8 +1341,9 @@ int mutt_index_menu (void)
#endif
mutt_clear_error ();
- mutt_buffy_check(1); /* force the buffy check after we have changed
- the folder */
+ mutt_buffy_check(MUTT_BUFFY_CHECK_FORCE); /* force the buffy check after
+ we have changed the
+ folder */
menu->redraw = REDRAW_FULL;
set_option (OPTSEARCHINVALID);
break;
@@ -2467,6 +2470,10 @@ int mutt_index_menu (void)
mutt_what_key();
break;
+ case OP_CHECK_STATS:
+ mutt_check_stats();
+ break;
+
#ifdef USE_SIDEBAR
case OP_SIDEBAR_NEXT:
case OP_SIDEBAR_NEXT_NEW: