NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
mdemail.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_MAILDIR_MDEMAIL_H
24
#define MUTT_MAILDIR_MDEMAIL_H
25
26
#include <stdbool.h>
27
#include <sys/types.h>
28
#include "
mutt/lib.h
"
29
33
struct
MdEmail
34
{
35
struct
Email
*
email
;
36
char
*
canon_fname
;
37
bool
header_parsed
;
38
ino_t
inode
;
39
};
40
ARRAY_HEAD
(MdEmailArray,
struct
MdEmail
*);
41
42
void
maildir_entry_free
(
struct
MdEmail
**ptr);
43
struct
MdEmail
*
maildir_entry_new
(
void
);
44
void
maildirarray_clear
(
struct
MdEmailArray *mda);
45
46
#endif
/* MUTT_MAILDIR_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
maildir_entry_free
void maildir_entry_free(struct MdEmail **ptr)
Free a Maildir object.
Definition
mdemail.c:48
maildir_entry_new
struct MdEmail * maildir_entry_new(void)
Create a new Maildir entry.
Definition
mdemail.c:39
maildirarray_clear
void maildirarray_clear(struct MdEmailArray *mda)
Free a Maildir array.
Definition
mdemail.c:64
lib.h
Convenience wrapper for the library headers.
Email
The envelope/body of an email.
Definition
email.h:39
MdEmail
A Maildir Email helper.
Definition
mdemail.h:34
MdEmail::header_parsed
bool header_parsed
Has the Email header been parsed?
Definition
mdemail.h:37
MdEmail::canon_fname
char * canon_fname
Canonical filename for hashing.
Definition
mdemail.h:36
MdEmail::email
struct Email * email
Temporary Email.
Definition
mdemail.h:35
MdEmail::inode
ino_t inode
Inode number of the file.
Definition
mdemail.h:38