NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
mhemail.h
Go to the documentation of this file.
1
22
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
35
struct
MhEmail
36
{
37
struct
Email
*
email
;
38
char
*
canon_fname
;
39
bool
header_parsed
;
40
ino_t
inode
;
41
};
42
ARRAY_HEAD
(MhEmailArray,
struct
MhEmail
*);
43
44
void
mharray_clear
(
struct
MhEmailArray *mha);
45
void
mh_entry_free
(
struct
MhEmail
**ptr);
46
struct
MhEmail
*
mh_entry_new
(
void
);
47
48
#endif
/* MUTT_MH_MDEMAIL_H */
ARRAY_HEAD
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
Definition
array.h:47
mh_entry_new
struct MhEmail * mh_entry_new(void)
Create a new Mh entry.
Definition
mhemail.c:39
mh_entry_free
void mh_entry_free(struct MhEmail **ptr)
Free a Mh object.
Definition
mhemail.c:48
mharray_clear
void mharray_clear(struct MhEmailArray *mha)
Free a Mh array.
Definition
mhemail.c:64
lib.h
Convenience wrapper for the library headers.
Email
The envelope/body of an email.
Definition
email.h:39
MhEmail
A Mh Email helper.
Definition
mhemail.h:36
MhEmail::header_parsed
bool header_parsed
Has the Email header been parsed?
Definition
mhemail.h:39
MhEmail::email
struct Email * email
Temporary Email.
Definition
mhemail.h:37
MhEmail::canon_fname
char * canon_fname
Canonical filename for hashing.
Definition
mhemail.h:38
MhEmail::inode
ino_t inode
Inode number of the file.
Definition
mhemail.h:40