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