NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
message.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include "
mutt/lib.h
"
31
#include "
message.h
"
32
37
void
message_free
(
struct
Message
**ptr)
38
{
39
if
(!ptr || !*ptr)
40
return
;
41
42
struct
Message
*msg = *ptr;
43
FREE
(&msg->
path
);
44
FREE
(&msg->
committed_path
);
45
46
FREE
(ptr);
47
}
48
53
struct
Message
*
message_new
(
void
)
54
{
55
return
MUTT_MEM_CALLOC
(1,
struct
Message
);
56
}
message_new
struct Message * message_new(void)
Create a new Message.
Definition
message.c:53
message_free
void message_free(struct Message **ptr)
Free a Message.
Definition
message.c:37
message.h
A local copy of an email.
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.
Message
A local copy of an email.
Definition
message.h:34
Message::path
char * path
path to temp file
Definition
message.h:36
Message::committed_path
char * committed_path
the final path generated by mx_msg_commit()
Definition
message.h:37