send: read reply-to header
[mailx.git] / sort.h
blob05aade65c5c2529e7d02981ab507b2a3278efed1
1 #define SORT_THREAD 0x01
3 struct thread {
4 struct mail *mail;
5 char *id;
6 int id_len;
7 char *rply;
8 int rply_len;
9 struct thread *parent;
10 struct thread *head;
11 struct thread *tail;
12 struct thread *next;
15 struct sort {
16 struct thread threads[MAXMAILS];
17 struct thread *id_sorted[MAXMAILS];
18 struct thread *sorted[MAXMAILS];
19 struct mail *mails[MAXMAILS];
20 struct mbox *mbox;
21 int kind;
22 int n;
25 struct sort *sort_alloc(struct mbox *mbox, int kind);
26 void sort_free(struct sort *sort);
27 int sort_level(struct sort *sort, int msg);
28 void sort_inc(struct sort *sort);