* Create help for explaining how encrypted password file support
[alpine.git] / pith / sort.h
blobce383a04b8859ce1f4e8ed0a167c158d5b9c6ffb
1 /*
2 * $Id: sort.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_SORT_INCLUDED
17 #define PITH_SORT_INCLUDED
20 #include "../pith/sorttype.h"
21 #include "../pith/msgno.h"
24 #define refresh_sort(S,M,F) sort_folder((S), (M), mn_get_sort(M), \
25 mn_get_revsort(M), (F))
27 struct global_sort_data {
28 MSGNO_S *msgmap;
29 SORTPGM *prog;
33 /* sort flags */
34 #define SRT_NON 0x0 /* None; no options set */
35 #define SRT_VRB 0x1 /* Verbose */
36 #define SRT_MAN 0x2 /* Sorted manually since opened */
39 extern struct global_sort_data g_sort;
42 /* exported protoypes */
43 char *sort_name(SortOrder);
44 void sort_folder(MAILSTREAM *, MSGNO_S *, SortOrder, int, unsigned);
45 int decode_sort(char *, SortOrder *, int *);
46 void reset_sort_order(unsigned);
49 #endif /* PITH_SORT_INCLUDED */