NeoMutt  2024-10-02-58-g7720cc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
mhemail.h
Go to the documentation of this file.
1
23#ifndef MUTT_MH_MDEMAIL_H
24#define MUTT_MH_MDEMAIL_H
25
26#include <stdbool.h>
27#include <sys/types.h>
28#include "mutt/lib.h"
29
35struct MhEmail
36{
37 struct Email *email;
38 char * canon_fname;
40 ino_t inode;
41};
42ARRAY_HEAD(MhEmailArray, struct MhEmail *);
43
44void mharray_clear(struct MhEmailArray *mha);
45void mh_entry_free(struct MhEmail **ptr);
46struct MhEmail *mh_entry_new (void);
47
48#endif /* MUTT_MH_MDEMAIL_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
struct MhEmail * mh_entry_new(void)
Create a new Mh entry.
Definition: mhemail.c:39
void mh_entry_free(struct MhEmail **ptr)
Free a Mh object.
Definition: mhemail.c:48
void mharray_clear(struct MhEmailArray *mha)
Free a Mh array.
Definition: mhemail.c:64
Convenience wrapper for the library headers.
The envelope/body of an email.
Definition: email.h:39
A Mh Email helper.
Definition: mhemail.h:36
bool header_parsed
Has the Email header been parsed?
Definition: mhemail.h:39
struct Email * email
Temporary Email.
Definition: mhemail.h:37
char * canon_fname
Canonical filename for hashing.
Definition: mhemail.h:38
ino_t inode
Inode number of the file.
Definition: mhemail.h:40