NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
sort2.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_CONFIG_SORT_H
24 #define MUTT_CONFIG_SORT_H
25 
26 #include "mutt/lib.h"
27 
28 struct ConfigSet;
29 
30 extern const struct Mapping SortAliasMethods[];
31 extern const struct Mapping SortBrowserMethods[];
32 extern const struct Mapping SortKeyMethods[];
33 extern const struct Mapping SortMethods[];
34 extern const struct Mapping SortSidebarMethods[];
35 
36 /* ... DT_SORT */
37 #define DT_SORT_LAST 0x0800
38 #define DT_SORT_REVERSE 0x1000
39 
40 
44 {
45  SORT_DATE = 1,
46  SORT_SIZE = 2,
47  SORT_ALPHA = 3,
49  SORT_FROM = 4,
50  SORT_ORDER = 5,
53  SORT_TO = 8,
54  SORT_SCORE = 9,
55  SORT_ALIAS = 10,
56  SORT_ADDRESS = 11,
57  SORT_KEYID = 12,
58  SORT_TRUST = 13,
59  SORT_SPAM = 14,
60  SORT_COUNT = 15,
61  SORT_UNREAD = 16,
62  SORT_FLAGGED = 17,
63  SORT_PATH = 18,
64  SORT_LABEL = 19,
65  SORT_DESC = 20,
66 
68 };
69 
70 /* `$sort` and `$sort_aux` are shorts, and are a composite of a constant sort
71  * operation number and a set of compounded bitflags.
72  *
73  * Everything below SORT_MASK is a constant. There's room for SORT_MASK
74  * constant SORT_ values.
75  *
76  * Everything above is a bitflag. It's OK to move SORT_MASK down by powers of 2
77  * if we need more, so long as we don't collide with the constants above. (Or
78  * we can just expand sort and sort_aux to uint32_t.)
79  */
80 #define SORT_MASK ((1 << 8) - 1)
81 #define SORT_REVERSE (1 << 8)
82 #define SORT_LAST (1 << 9)
83 
84 #endif /* MUTT_CONFIG_SORT_H */
Container for lots of config items.
Definition: set.h:228
SortType
Methods for sorting.
Definition: sort2.h:43
Sort by the number of flagged emails.
Definition: sort2.h:62
const struct Mapping SortAliasMethods[]
Sort methods for email aliases.
Definition: config.c:36
Definition: sort2.h:67
Sort by the folder&#39;s path.
Definition: sort2.h:63
Sort by the email&#39;s From field.
Definition: sort2.h:49
Sort by email address.
Definition: sort2.h:56
Sort by the email&#39;s score.
Definition: sort2.h:54
Sort by the emails label.
Definition: sort2.h:64
Sort by the size of the email.
Definition: sort2.h:46
const struct Mapping SortKeyMethods[]
Sort methods for encryption keys.
Definition: config.c:44
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:50
const struct Mapping SortBrowserMethods[]
Sort methods for the folder/dir browser.
Definition: mutt_config.c:127
Sort by encryption key&#39;s trust level.
Definition: sort2.h:58
Sort by email threads.
Definition: sort2.h:51
Sort by email alias.
Definition: sort2.h:55
Sort by the email&#39;s spam score.
Definition: sort2.h:59
const struct Mapping SortSidebarMethods[]
Sort methods for the sidebar.
Definition: config.c:38
Sort by the email&#39;s To field.
Definition: sort2.h:53
Required by makedoc.c.
Definition: sort2.h:47
const struct Mapping SortMethods[]
Sort methods for &#39;$sort&#39; for the index.
Definition: mutt_config.c:105
Sort by the number of unread emails.
Definition: sort2.h:61
Sort by the folder&#39;s description.
Definition: sort2.h:65
Mapping between user-readable string and a constant.
Definition: mapping.h:31
Sort by the encryption key&#39;s ID.
Definition: sort2.h:57
Sort by number of emails in a folder.
Definition: sort2.h:60
Sort by when the message were delivered locally.
Definition: sort2.h:52
Sort by the date the email was sent.
Definition: sort2.h:45
Convenience wrapper for the library headers.
Sort by the email&#39;s subject.
Definition: sort2.h:48