NeoMutt  2021-02-05-89-gabe350
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 */
SORT_SPAM
@ SORT_SPAM
Sort by the email's spam score.
Definition: sort2.h:59
SORT_TO
@ SORT_TO
Sort by the email's To field.
Definition: sort2.h:53
SORT_THREADS
@ SORT_THREADS
Sort by email threads.
Definition: sort2.h:51
SORT_FLAGGED
@ SORT_FLAGGED
Sort by the number of flagged emails.
Definition: sort2.h:62
SortBrowserMethods
const struct Mapping SortBrowserMethods[]
Sort methods for the folder/dir browser.
Definition: mutt_config.c:126
SORT_ALIAS
@ SORT_ALIAS
Sort by email alias.
Definition: sort2.h:55
SortType
SortType
Methods for sorting.
Definition: sort2.h:43
SORT_COUNT
@ SORT_COUNT
Sort by number of emails in a folder.
Definition: sort2.h:60
SORT_MAX
@ SORT_MAX
Definition: sort2.h:67
Mapping
Mapping between user-readable string and a constant.
Definition: mapping.h:31
SortMethods
const struct Mapping SortMethods[]
Sort methods for '$sort' for the index.
Definition: mutt_config.c:104
SortKeyMethods
const struct Mapping SortKeyMethods[]
Sort methods for encryption keys.
Definition: config.c:42
lib.h
SORT_SUBJECT
@ SORT_SUBJECT
Sort by the email's subject.
Definition: sort2.h:48
SORT_SCORE
@ SORT_SCORE
Sort by the email's score.
Definition: sort2.h:54
SortSidebarMethods
const struct Mapping SortSidebarMethods[]
Sort methods for the sidebar.
Definition: config.c:38
SORT_UNREAD
@ SORT_UNREAD
Sort by the number of unread emails.
Definition: sort2.h:61
SORT_ALPHA
@ SORT_ALPHA
Required by makedoc.c.
Definition: sort2.h:47
SORT_KEYID
@ SORT_KEYID
Sort by the encryption key's ID.
Definition: sort2.h:57
SORT_ORDER
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:50
SORT_ADDRESS
@ SORT_ADDRESS
Sort by email address.
Definition: sort2.h:56
SORT_RECEIVED
@ SORT_RECEIVED
Sort by when the message were delivered locally.
Definition: sort2.h:52
SORT_FROM
@ SORT_FROM
Sort by the email's From field.
Definition: sort2.h:49
ConfigSet
Container for lots of config items.
Definition: set.h:228
SortAliasMethods
const struct Mapping SortAliasMethods[]
Sort methods for email aliases.
Definition: config.c:36
SORT_LABEL
@ SORT_LABEL
Sort by the emails label.
Definition: sort2.h:64
SORT_TRUST
@ SORT_TRUST
Sort by encryption key's trust level.
Definition: sort2.h:58
SORT_SIZE
@ SORT_SIZE
Sort by the size of the email.
Definition: sort2.h:46
SORT_DATE
@ SORT_DATE
Sort by the date the email was sent.
Definition: sort2.h:45
SORT_PATH
@ SORT_PATH
Sort by the folder's path.
Definition: sort2.h:63
SORT_DESC
@ SORT_DESC
Sort by the folder's description.
Definition: sort2.h:65