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.
13 #define SORT_DATE 1 /* the date the mail was sent. */
15 #define SORT_SUBJECT 3
16 #define SORT_ALPHA 3 /* makedoc.c requires this */
18 #define SORT_ORDER 5 /* the order the messages appear in the mailbox. */
19 #define SORT_THREADS 6
20 #define SORT_RECEIVED 7 /* when the message were delivered locally */
24 #define SORT_ADDRESS 11
28 /* dgc: Sort & SortAux are shorts, so I'm bumping these bitflags up from
29 * bits 4 & 5 to bits 8 & 9 to make room for more sort keys in the future. */
30 #define SORT_MASK 0xff
31 #define SORT_REVERSE (1<<8)
32 #define SORT_LAST (1<<9)
34 typedef int sort_t (const void *, const void *);
35 sort_t *mutt_get_sort_func (int);
37 void mutt_sort_headers (CONTEXT *, int);
38 int mutt_select_sort (int);
40 WHERE short BrowserSort INITVAL (SORT_SUBJECT);
41 WHERE short Sort INITVAL (SORT_DATE);
42 WHERE short SortAux INITVAL (SORT_DATE); /* auxiallary sorting method */
43 WHERE short SortAlias INITVAL (SORT_ALIAS);
45 /* FIXME: This one does not belong to here */
46 WHERE short PgpSortKeys INITVAL (SORT_ADDRESS);
48 extern const struct mapping_t SortMethods[];