Add support for tab-completion when selecting by rule
[alpine.git] / pith / sort.h
blob4c936984a5bbf9277a3485ddb18d998adfd304e5
1 /*
2 * $Id: sort.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2022 Eduardo Chappa
6 * Copyright 2006 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_SORT_INCLUDED
18 #define PITH_SORT_INCLUDED
21 #include "../pith/sorttype.h"
22 #include "../pith/msgno.h"
25 #define refresh_sort(S,M,F) sort_folder((S), (M), mn_get_sort(M), \
26 mn_get_revsort(M), (F))
28 struct global_sort_data {
29 MSGNO_S *msgmap;
30 SORTPGM *prog;
34 /* sort flags */
35 #define SRT_NON 0x0 /* None; no options set */
36 #define SRT_VRB 0x1 /* Verbose */
37 #define SRT_MAN 0x2 /* Sorted manually since opened */
40 extern struct global_sort_data g_sort;
43 /* exported prototypes */
44 char *sort_name(SortOrder);
45 void sort_folder(MAILSTREAM *, MSGNO_S *, SortOrder, int, unsigned);
46 int decode_sort(char *, SortOrder *, int *);
47 void reset_sort_order(unsigned);
50 #endif /* PITH_SORT_INCLUDED */