summaryrefslogtreecommitdiffstats
path: root/mutt.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-12-02 15:36:59 -0800
committerKevin McCarthy <kevin@8t8.us>2021-12-03 11:13:19 -0800
commit29ed0c2e1db250919e7f2dcbdce52b882f2256f6 (patch)
tree70cc6b4ae354790e23bbda5aa5a98c4e31daa879 /mutt.h
parentede3cf58d9e3e7c73ea7da32c43cb3d5c1457d61 (diff)
Improve the statusbar modified flag for $maildir_trash.
Add a context counter for the trash status flag. Compare that to the number of deleted messages to determine modified state. Note that "undeleting" a trashed message will set context->changed. Without that we couldn't do a simple counter comparison. But with context->changed checked first, we can assume equal trash and deleted flags then means there are no "delete" modifications pending.
Diffstat (limited to 'mutt.h')
-rw-r--r--mutt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mutt.h b/mutt.h
index e4b88788..4aa92e85 100644
--- a/mutt.h
+++ b/mutt.h
@@ -1109,6 +1109,10 @@ typedef struct _context
int new; /* how many new messages? */
int unread; /* how many unread messages? */
int deleted; /* how many deleted messages */
+ int trashed; /* how many marked as trashed on disk.
+ * This flag is used by the maildir_trash
+ * option.
+ */
int flagged; /* how many flagged messages */
int msgnotreadyet; /* which msg "new" in pager, -1 if none */