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