NeoMutt  2019-12-07-168-gc45f47
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 SortAuxMethods[];
32 extern const struct Mapping SortBrowserMethods[];
33 extern const struct Mapping SortKeyMethods[];
34 extern const struct Mapping SortMethods[];
35 extern const struct Mapping SortSidebarMethods[];
36 
37 /* ... DT_SORT */
38 #define DT_SORT_INDEX 0x000
39 #define DT_SORT_ALIAS 0x040
40 #define DT_SORT_BROWSER 0x080
41 #define DT_SORT_KEYS 0x100
42 #define DT_SORT_AUX 0x200
43 #define DT_SORT_SIDEBAR 0x400
44 
45 
49 {
50  SORT_DATE = 1,
51  SORT_SIZE = 2,
52  SORT_ALPHA = 3,
54  SORT_FROM = 4,
55  SORT_ORDER = 5,
58  SORT_TO = 8,
59  SORT_SCORE = 9,
60  SORT_ALIAS = 10,
61  SORT_ADDRESS = 11,
62  SORT_KEYID = 12,
63  SORT_TRUST = 13,
64  SORT_SPAM = 14,
65  SORT_COUNT = 15,
66  SORT_UNREAD = 16,
67  SORT_FLAGGED = 17,
68  SORT_PATH = 18,
69  SORT_LABEL = 19,
70  SORT_DESC = 20,
71 
73 };
74 
75 /* C_Sort and C_SortAux are shorts, and are a composite of a constant sort
76  * operation number and a set of compounded bitflags.
77  *
78  * Everything below SORT_MASK is a constant. There's room for SORT_MASK
79  * constant SORT_ values.
80  *
81  * Everything above is a bitflag. It's OK to move SORT_MASK down by powers of 2
82  * if we need more, so long as we don't collide with the constants above. (Or
83  * we can just expand sort and sort_aux to uint32_t.)
84  */
85 #define SORT_MASK ((1 << 8) - 1)
86 #define SORT_REVERSE (1 << 8)
87 #define SORT_LAST (1 << 9)
88 
89 void sort_init(struct ConfigSet *cs);
90 
91 #endif /* MUTT_CONFIG_SORT_H */
Container for lots of config items.
Definition: set.h:168
SortType
Methods for sorting.
Definition: sort2.h:48
Sort by the number of flagged emails.
Definition: sort2.h:67
const struct Mapping SortAliasMethods[]
Sort methods for email aliases.
Definition: sort.c:42
Definition: sort2.h:72
Sort by the folder&#39;s path.
Definition: sort2.h:68
Sort by the email&#39;s From field.
Definition: sort2.h:54
Sort by email address.
Definition: sort2.h:61
Sort by the email&#39;s score.
Definition: sort2.h:59
Sort by the emails label.
Definition: sort2.h:69
void sort_init(struct ConfigSet *cs)
Register the Sort config type.
Definition: sort.c:381
Sort by the size of the email.
Definition: sort2.h:51
const struct Mapping SortKeyMethods[]
Sort methods for encryption keys.
Definition: sort.c:86
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:55
const struct Mapping SortBrowserMethods[]
Sort methods for the folder/dir browser.
Definition: sort.c:71
const struct Mapping SortAuxMethods[]
Sort methods for &#39;$sort_aux&#39; for the index.
Definition: sort.c:52
Sort by encryption key&#39;s trust level.
Definition: sort2.h:63
Sort by email threads.
Definition: sort2.h:56
Sort by email alias.
Definition: sort2.h:60
Sort by the email&#39;s spam score.
Definition: sort2.h:64
const struct Mapping SortSidebarMethods[]
Sort methods for the sidebar.
Definition: sort.c:116
Sort by the email&#39;s To field.
Definition: sort2.h:58
Required by makedoc.c.
Definition: sort2.h:52
const struct Mapping SortMethods[]
Sort methods for &#39;$sort&#39; for the index.
Definition: sort.c:97
Sort by the number of unread emails.
Definition: sort2.h:66
Sort by the folder&#39;s description.
Definition: sort2.h:70
Mapping between user-readable string and a constant.
Definition: mapping.h:29
Sort by the encryption key&#39;s ID.
Definition: sort2.h:62
Sort by number of emails in a folder.
Definition: sort2.h:65
Sort by when the message were delivered locally.
Definition: sort2.h:57
Sort by the date the email was sent.
Definition: sort2.h:50
Convenience wrapper for the library headers.
Sort by the email&#39;s subject.
Definition: sort2.h:53