2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
10 #define SORT_DATE 1 /* the date the mail was sent. */
12 #define SORT_SUBJECT 3
13 #define SORT_ALPHA 3 /* makedoc.c requires this */
15 #define SORT_ORDER 5 /* the order the messages appear in the mailbox. */
16 #define SORT_THREADS 6
17 #define SORT_RECEIVED 7 /* when the message were delivered locally */
21 #define SORT_ADDRESS 11
25 /* dgc: Sort & SortAux are shorts, so I'm bumping these bitflags up from
26 * bits 4 & 5 to bits 8 & 9 to make room for more sort keys in the future. */
27 #define SORT_MASK 0xff
28 #define SORT_REVERSE (1<<8)
29 #define SORT_LAST (1<<9)
31 typedef int sort_t (const void *, const void *);
32 sort_t *mutt_get_sort_func (int);
34 void mutt_sort_headers (CONTEXT *, int);
35 int mutt_select_sort (int);
37 WHERE short BrowserSort INITVAL (SORT_SUBJECT);
38 WHERE short Sort INITVAL (SORT_DATE);
39 WHERE short SortAux INITVAL (SORT_DATE); /* auxiallary sorting method */
40 WHERE short SortAlias INITVAL (SORT_ALIAS);
42 /* FIXME: This one does not belong to here */
43 WHERE short PgpSortKeys INITVAL (SORT_ADDRESS);
46 extern const struct mapping_t SortMethods[];