diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-27 23:45:40 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-27 23:45:40 +0000 |
commit | a56c4be859b9138d8f7044aaf5c72bbb7ad821cc (patch) | |
tree | ed65f47425bdb620b7ce52c0684a64012805038e /mutt.h | |
parent | 31beda39930d293e1331505d138ad5fae7bdbc4f (diff) |
[patch-0.94.4.vikas.collapse.2] Vikas' collapse-thread
patch.
Diffstat (limited to 'mutt.h')
-rw-r--r-- | mutt.h | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -100,7 +100,8 @@ typedef enum M_FORMAT_MAKEPRINT = (1<<2), /* make sure that all chars are printable */ M_FORMAT_OPTIONAL = (1<<3), M_FORMAT_STAT_FILE = (1<<4), /* used by mutt_attach_fmt */ - M_FORMAT_ARROWCURSOR = (1<<5) /* reserve space for arrow_cursor */ + M_FORMAT_ARROWCURSOR = (1<<5), /* reserve space for arrow_cursor */ + M_FORMAT_INDEX = (1<<6) /* this is a main index entry */ } format_flag; /* types for mutt_add_hook() */ @@ -123,6 +124,12 @@ typedef enum #define M_TREE_HIDDEN 9 #define M_TREE_MAX 10 +#define M_THREAD_COLLAPSE (1<<0) +#define M_THREAD_UNCOLLAPSE (1<<1) +#define M_THREAD_GET_HIDDEN (1<<2) +#define M_THREAD_UNREAD (1<<3) +#define M_THREAD_NEXT_NEW (1<<4) + enum { /* modes for mutt_view_attachment() */ @@ -236,11 +243,13 @@ enum OPTASKBCC, OPTASKCC, OPTATTACHSPLIT, + OPTAUTOCOLLAPSE, OPTAUTOEDIT, OPTAUTOTAG, OPTBEEP, OPTBEEPNEW, OPTCHECKNEW, + OPTCOLLAPSENEW, OPTCONFIRMAPPEND, OPTCONFIRMCREATE, OPTEDITHDRS, @@ -280,6 +289,7 @@ enum OPTSUSPEND, OPTTHOROUGHSRC, OPTTILDE, + OPTUNCOLLAPSEJUMPNEW, OPTUSE8BITMIME, OPTUSEDOMAIN, OPTUSEFROM, @@ -288,7 +298,7 @@ enum OPTWRAP, OPTWRAPSEARCH, OPTWRITEBCC, /* write out a bcc header? */ - + /* PGP options */ #ifdef _PGPPATH @@ -318,6 +328,7 @@ enum OPTFORCEREDRAWPAGER, /* (pseudo) used to force a redraw in the pager */ OPTSORTSUBTHREADS, /* (pseudo) used when $sort_aux changes */ OPTNEEDRESCORE, /* (pseudo) set when the `score' command is used */ + OPTSORTCOLLAPSE, /* (pseudo) used by mutt_sort_headers() */ #ifdef _PGPPATH OPTPGPCHECKTRUST, /* (pseudo) used by pgp_select_key () */ @@ -502,6 +513,11 @@ typedef struct header unsigned int searched : 1; unsigned int matched : 1; + /* the following are used to support collapsing threads */ + unsigned int collapsed : 1; /* is this message part of a collapsed thread? */ + unsigned int limited : 1; /* is this message in a limited view? */ + size_t num_hidden; /* number of hidden messages in this view */ + int pair; /* color-pair to use when displaying in the index */ time_t date_sent; /* time when the message was sent (UTC) */ @@ -583,6 +599,7 @@ typedef struct unsigned int setgid : 1; unsigned int quiet : 1; /* inhibit status messages? */ unsigned int revsort : 1; /* mailbox sorted in reverse? */ + unsigned int collapsed : 1; /* are all threads collapsed? */ } CONTEXT; typedef struct attachptr |