NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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
28extern const struct Mapping SortMethods[];
29
34{
43 SORT_TO = 8,
49 SORT_SPAM = 14,
53 SORT_PATH = 18,
55 SORT_DESC = 20,
56
58};
59
60/* `$sort` and `$sort_aux` are shorts, and are a composite of a constant sort
61 * operation number and a set of compounded bitflags.
62 *
63 * Everything below SORT_MASK is a constant. There's room for SORT_MASK
64 * constant SORT_ values.
65 *
66 * Everything above is a bitflag. It's OK to move SORT_MASK down by powers of 2
67 * if we need more, so long as we don't collide with the constants above. (Or
68 * we can just expand sort and sort_aux to uint32_t.)
69 */
70#define SORT_MASK ((1 << 8) - 1)
71#define SORT_REVERSE (1 << 8)
72#define SORT_LAST (1 << 9)
73
74#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:89
SortType
Methods for sorting.
Definition: sort2.h:34
@ SORT_SUBJECT
Sort by the email's subject.
Definition: sort2.h:38
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:40
@ SORT_THREADS
Sort by email threads.
Definition: sort2.h:41
@ SORT_TRUST
Sort by encryption key's trust level.
Definition: sort2.h:48
@ SORT_PATH
Sort by the folder's path.
Definition: sort2.h:53
@ SORT_ALIAS
Sort by email alias.
Definition: sort2.h:45
@ SORT_SPAM
Sort by the email's spam score.
Definition: sort2.h:49
@ SORT_FLAGGED
Sort by the number of flagged emails.
Definition: sort2.h:52
@ SORT_LABEL
Sort by the emails label.
Definition: sort2.h:54
@ SORT_FROM
Sort by the email's From field.
Definition: sort2.h:39
@ SORT_SIZE
Sort by the size of the email.
Definition: sort2.h:36
@ SORT_RECEIVED
Sort by when the message were delivered locally.
Definition: sort2.h:42
@ SORT_DESC
Sort by the folder's description.
Definition: sort2.h:55
@ SORT_TO
Sort by the email's To field.
Definition: sort2.h:43
@ SORT_ALPHA
Required by makedoc.c.
Definition: sort2.h:37
@ SORT_KEYID
Sort by the encryption key's ID.
Definition: sort2.h:47
@ SORT_DATE
Sort by the date the email was sent.
Definition: sort2.h:35
@ SORT_MAX
Definition: sort2.h:57
@ SORT_SCORE
Sort by the email's score.
Definition: sort2.h:44
@ SORT_COUNT
Sort by number of emails in a folder.
Definition: sort2.h:50
@ SORT_UNREAD
Sort by the number of unread emails.
Definition: sort2.h:51
@ SORT_ADDRESS
Sort by email address.
Definition: sort2.h:46
Mapping between user-readable string and a constant.
Definition: mapping.h:33