Create/manipulate threading in emails. More...
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | MuttThread |
An Email conversation. More... | |
Functions | |
void | clean_references (struct MuttThread *brk, struct MuttThread *cur) |
Update email references for a broken Thread. | |
struct Email * | find_virtual (struct MuttThread *cur, bool reverse) |
Find an email with a Virtual message number. | |
void | insert_message (struct MuttThread **add, struct MuttThread *parent, struct MuttThread *cur) |
Insert a message into a thread. | |
bool | is_descendant (const struct MuttThread *a, const struct MuttThread *b) |
Is one thread a descendant of another. | |
void | mutt_break_thread (struct Email *e) |
Break the email Thread. | |
void | unlink_message (struct MuttThread **old, struct MuttThread *cur) |
Break the message out of the thread. | |
Create/manipulate threading in emails.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file thread.h.
void clean_references | ( | struct MuttThread * | brk, |
struct MuttThread * | cur | ||
) |
Update email references for a broken Thread.
brk | Broken thread |
cur | Current thread |
Definition at line 177 of file thread.c.
struct Email * find_virtual | ( | struct MuttThread * | cur, |
bool | reverse | ||
) |
Find an email with a Virtual message number.
cur | Thread to search |
reverse | If true, reverse the direction of the search |
ptr | Matching Email |
Definition at line 124 of file thread.c.
void insert_message | ( | struct MuttThread ** | add, |
struct MuttThread * | parent, | ||
struct MuttThread * | cur | ||
) |
Insert a message into a thread.
[in,out] | add | New thread to add |
[in] | parent | Parent of new thread |
[in] | cur | Current thread to add after |
add cur as a prior sibling of *add, with parent parent
Definition at line 104 of file thread.c.
bool is_descendant | ( | const struct MuttThread * | a, |
const struct MuttThread * | b | ||
) |
void mutt_break_thread | ( | struct Email * | e | ) |
Break the email Thread.
e | Email to break at |
Definition at line 229 of file thread.c.
void unlink_message | ( | struct MuttThread ** | old, |
struct MuttThread * | cur | ||
) |
Break the message out of the thread.
[in,out] | old | Root of thread |
[in] | cur | Child thread to separate |
Remove cur and its descendants from their current location. Also make sure ancestors of cur no longer are sorted by the fact that cur is their descendant.
Definition at line 66 of file thread.c.