summaryrefslogtreecommitdiffstats
path: root/buffy.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-03-25 15:07:48 -0700
committerKevin McCarthy <kevin@8t8.us>2020-03-27 14:11:25 -0700
commit1487ea6485745bc836026594aa05c9ad3921def2 (patch)
tree967c830e1be59c9bb6981cc5dbee6b2f6969ff4b /buffy.h
parent1e9ab8b67e50f512bed61f204cdc99c6ca76ba54 (diff)
Add -label and -nopoll arguments to mailboxes command
-nopoll allows adding the mailbox to the sidebar, or the mailbox browser menu, without incurring polling costs. -poll can be used to re-enable polling for a previously disabled mailbox. -label allows specifying an alternative string to show in the sidebar and mailbox browser menu. -nolabel removes a label from an existing mailbox. Change $sidebar_sort_method so that "alpha" and "name" will sort by the label if specified. "path", however, will always sort by the actual mailbox path.
Diffstat (limited to 'buffy.h')
-rw-r--r--buffy.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/buffy.h b/buffy.h
index 888b07d1..591e225f 100644
--- a/buffy.h
+++ b/buffy.h
@@ -19,15 +19,13 @@
#ifndef _BUFFY_H
#define _BUFFY_H
-/*parameter to mutt_parse_mailboxes*/
-#define MUTT_MAILBOXES 1
-#define MUTT_UNMAILBOXES 2
-
typedef struct buffy_t
{
BUFFER *pathbuf;
const char *realpath; /* used for duplicate detection, context comparison,
and the sidebar */
+ char *label; /* an optional label for the mailbox */
+
off_t size;
struct buffy_t *next;
short new; /* mailbox has new mail */
@@ -37,6 +35,7 @@ typedef struct buffy_t
int msg_unread; /* number of unread messages */
int msg_flagged; /* number of flagged messages */
+ short nopoll; /* if set, don't poll for new mail */
short notified; /* user has been notified */
short magic; /* mailbox type */
short newly_created; /* mbox or mmdf just popped into existence */