Fix compilation warnings in mbox.c
[apps/madmutt.git] / thread.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
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.
8  */
9 #ifndef _MUTT_THREAD_H
10 #define _MUTT_THREAD_H
11
12 #define mutt_next_thread(x) _mutt_aside_thread(x,1,0)
13 #define mutt_previous_thread(x) _mutt_aside_thread(x,0,0)
14 #define mutt_next_subthread(x) _mutt_aside_thread(x,1,1)
15 #define mutt_previous_subthread(x) _mutt_aside_thread(x,0,1)
16 int _mutt_aside_thread (HEADER *, short, short);
17
18 #define mutt_collapse_thread(x,y) _mutt_traverse_thread (x,y,M_THREAD_COLLAPSE)
19 #define mutt_uncollapse_thread(x,y) _mutt_traverse_thread (x,y,M_THREAD_UNCOLLAPSE)
20 #define mutt_get_hidden(x,y)_mutt_traverse_thread (x,y,M_THREAD_GET_HIDDEN)
21 #define mutt_thread_contains_unread(x,y) _mutt_traverse_thread (x,y,M_THREAD_UNREAD)
22 #define mutt_thread_next_unread(x,y) _mutt_traverse_thread(x,y,M_THREAD_NEXT_UNREAD)
23 int _mutt_traverse_thread (CONTEXT * ctx, HEADER * hdr, int flag);
24
25 void mutt_clear_threads (CONTEXT *);
26
27 void mutt_sort_threads (CONTEXT *, int);
28 THREAD *mutt_sort_subthreads (THREAD *, int);
29
30 int mutt_parent_message (CONTEXT *, HEADER *);
31 void mutt_set_virtual (CONTEXT *);
32
33 int mutt_messages_in_thread (CONTEXT *, HEADER *, int);
34
35 HASH *mutt_make_id_hash (CONTEXT *);
36 HASH *mutt_make_subj_hash (CONTEXT *);
37
38 int mutt_link_threads (HEADER *, HEADER *, CONTEXT *);
39 void mutt_break_thread (HEADER *);
40
41 /* computes an envelope's real_subj from subj */
42 void mutt_adjust_subject (ENVELOPE* e);
43 /* does mutt_adjust_subject() for messages in Context */
44 void mutt_adjust_all_subjects (void);
45
46 #endif /* !_MUTT_THREAD_H */