NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
edata.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include <stddef.h>
31
#include "
mutt/lib.h
"
32
#include "
email/lib.h
"
33
#include "
edata.h
"
34
38
void
maildir_edata_free
(
void
**ptr)
39
{
40
if
(!ptr || !*ptr)
41
return
;
42
43
struct
MaildirEmailData
*
edata
= *ptr;
44
FREE
(&
edata
->custom_flags);
45
46
FREE
(ptr);
47
}
48
53
struct
MaildirEmailData
*
maildir_edata_new
(
void
)
54
{
55
return
MUTT_MEM_CALLOC
(1,
struct
MaildirEmailData
);
56
}
57
63
struct
MaildirEmailData
*
maildir_edata_get
(
struct
Email
*e)
64
{
65
if
(!e)
66
return
NULL;
67
return
e->
edata
;
68
}
lib.h
Structs that make up an email.
maildir_edata_free
void maildir_edata_free(void **ptr)
Free the private Email data - Implements Email::edata_free() -.
Definition
edata.c:38
maildir_edata_get
struct MaildirEmailData * maildir_edata_get(struct Email *e)
Get the private data for this Email.
Definition
edata.c:63
maildir_edata_new
struct MaildirEmailData * maildir_edata_new(void)
Create a new MaildirEmailData object.
Definition
edata.c:53
edata.h
Maildir-specific Email data.
FREE
#define FREE(x)
Free memory and set the pointer to NULL.
Definition
memory.h:68
MUTT_MEM_CALLOC
#define MUTT_MEM_CALLOC(n, type)
Definition
memory.h:52
lib.h
Convenience wrapper for the library headers.
Email
The envelope/body of an email.
Definition
email.h:39
Email::edata
void * edata
Driver-specific data.
Definition
email.h:74
MaildirEmailData
Maildir-specific Email data -.
Definition
edata.h:32