add reply cmd
[mailx.git] / sort.h
blobf7abb36f98700accb037d411517dfd820bfa942a
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 char *sort_draw(struct sort *sort, int msg, char *buf, int len);
28 void sort_inc(struct sort *sort);