NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_EMAIL_THREAD_H
24
#define MUTT_EMAIL_THREAD_H
25
26
#include <stdbool.h>
27
28
struct
Email
;
29
33
struct
MuttThread
34
{
35
bool
check_subject
: 1;
36
bool
deep
: 1;
37
bool
duplicate_thread
: 1;
38
bool
fake_thread
: 1;
39
bool
next_subtree_visible
: 1;
40
bool
sort_children
: 1;
41
unsigned
int
subtree_visible
: 2;
42
bool
visible
: 1;
43
44
struct
MuttThread
*
parent
;
45
struct
MuttThread
*
child
;
46
struct
MuttThread
*
next
;
47
struct
MuttThread
*
prev
;
48
49
struct
Email
*
message
;
50
struct
Email
*
sort_thread_key
;
51
struct
Email
*
sort_aux_key
;
52
};
53
54
void
clean_references
(
struct
MuttThread
*brk,
struct
MuttThread
*cur);
55
struct
Email
*
find_virtual
(
struct
MuttThread
*cur,
bool
reverse);
56
void
insert_message
(
struct
MuttThread
**add,
struct
MuttThread
*parent,
struct
MuttThread
*cur);
57
bool
is_descendant
(
const
struct
MuttThread
*a,
const
struct
MuttThread
*b);
58
void
mutt_break_thread
(
struct
Email
*e);
59
void
unlink_message
(
struct
MuttThread
**
old
,
struct
MuttThread
*cur);
60
61
#endif
/* MUTT_EMAIL_THREAD_H */
unlink_message
void unlink_message(struct MuttThread **old, struct MuttThread *cur)
Break the message out of the thread.
Definition
thread.c:66
is_descendant
bool is_descendant(const struct MuttThread *a, const struct MuttThread *b)
Is one thread a descendant of another.
Definition
thread.c:46
insert_message
void insert_message(struct MuttThread **add, struct MuttThread *parent, struct MuttThread *cur)
Insert a message into a thread.
Definition
thread.c:104
mutt_break_thread
void mutt_break_thread(struct Email *e)
Break the email Thread.
Definition
thread.c:229
find_virtual
struct Email * find_virtual(struct MuttThread *cur, bool reverse)
Find an email with a Virtual message number.
Definition
thread.c:124
clean_references
void clean_references(struct MuttThread *brk, struct MuttThread *cur)
Update email references for a broken Thread.
Definition
thread.c:177
Email
The envelope/body of an email.
Definition
email.h:39
Email::old
bool old
Email is seen, but unread.
Definition
email.h:49
MuttThread
An Email conversation.
Definition
thread.h:34
MuttThread::sort_children
bool sort_children
Sort the children.
Definition
thread.h:40
MuttThread::visible
bool visible
Is this Thread visible?
Definition
thread.h:42
MuttThread::parent
struct MuttThread * parent
Parent of this Thread.
Definition
thread.h:44
MuttThread::sort_aux_key
struct Email * sort_aux_key
Email that controls how subthread siblings sort.
Definition
thread.h:51
MuttThread::prev
struct MuttThread * prev
Previous sibling Thread.
Definition
thread.h:47
MuttThread::fake_thread
bool fake_thread
Emails grouped by Subject.
Definition
thread.h:38
MuttThread::child
struct MuttThread * child
Child of this Thread.
Definition
thread.h:45
MuttThread::message
struct Email * message
Email this Thread refers to.
Definition
thread.h:49
MuttThread::deep
bool deep
Is the Thread deeply nested?
Definition
thread.h:36
MuttThread::subtree_visible
unsigned int subtree_visible
Is this Thread subtree visible?
Definition
thread.h:41
MuttThread::duplicate_thread
bool duplicate_thread
Duplicated Email in Thread.
Definition
thread.h:37
MuttThread::next_subtree_visible
bool next_subtree_visible
Is the next Thread subtree visible?
Definition
thread.h:39
MuttThread::check_subject
bool check_subject
Should the Subject be checked?
Definition
thread.h:35
MuttThread::sort_thread_key
struct Email * sort_thread_key
Email that controls how top thread sorts.
Definition
thread.h:50
MuttThread::next
struct MuttThread * next
Next sibling Thread.
Definition
thread.h:46