NeoMutt  2022-04-29-81-g9c5a59
Teaching an old dog new tricks
DOXYGEN
sort2.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_CONFIG_SORT2_H
24 #define MUTT_CONFIG_SORT2_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 
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_SORT2_H */
Convenience wrapper for the library headers.
const struct Mapping SortMethods[]
Sort methods for '$sort' for the index.
Definition: mutt_config.c:76
const struct Mapping SortBrowserMethods[]
Sort methods for the folder/dir browser.
Definition: mutt_config.c:98
const struct Mapping SortAliasMethods[]
Sort methods for email aliases.
Definition: config.c:38
const struct Mapping SortKeyMethods[]
Sort methods for encryption keys.
Definition: config.c:38
SortType
Methods for sorting.
Definition: sort2.h:42
@ SORT_SUBJECT
Sort by the email's subject.
Definition: sort2.h:46
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:48
@ SORT_THREADS
Sort by email threads.
Definition: sort2.h:49
@ SORT_TRUST
Sort by encryption key's trust level.
Definition: sort2.h:56
@ SORT_PATH
Sort by the folder's path.
Definition: sort2.h:61
@ SORT_ALIAS
Sort by email alias.
Definition: sort2.h:53
@ SORT_SPAM
Sort by the email's spam score.
Definition: sort2.h:57
@ SORT_FLAGGED
Sort by the number of flagged emails.
Definition: sort2.h:60
@ SORT_LABEL
Sort by the emails label.
Definition: sort2.h:62
@ SORT_FROM
Sort by the email's From field.
Definition: sort2.h:47
@ SORT_SIZE
Sort by the size of the email.
Definition: sort2.h:44
@ SORT_RECEIVED
Sort by when the message were delivered locally.
Definition: sort2.h:50
@ SORT_DESC
Sort by the folder's description.
Definition: sort2.h:63
@ SORT_TO
Sort by the email's To field.
Definition: sort2.h:51
@ SORT_ALPHA
Required by makedoc.c.
Definition: sort2.h:45
@ SORT_KEYID
Sort by the encryption key's ID.
Definition: sort2.h:55
@ SORT_DATE
Sort by the date the email was sent.
Definition: sort2.h:43
@ SORT_MAX
Definition: sort2.h:65
@ SORT_SCORE
Sort by the email's score.
Definition: sort2.h:52
@ SORT_COUNT
Sort by number of emails in a folder.
Definition: sort2.h:58
@ SORT_UNREAD
Sort by the number of unread emails.
Definition: sort2.h:59
@ SORT_ADDRESS
Sort by email address.
Definition: sort2.h:54
const struct Mapping SortSidebarMethods[]
Sort methods for the sidebar.
Definition: config.c:38
Mapping between user-readable string and a constant.
Definition: mapping.h:32