NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
message.c
Go to the documentation of this file.
1
29#include "config.h"
30#include "mutt/lib.h"
31#include "message.h"
32
37void 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
53struct Message *message_new(void)
54{
55 return MUTT_MEM_CALLOC(1, struct Message);
56}
struct Message * message_new(void)
Create a new Message.
Definition: message.c:53
void message_free(struct Message **ptr)
Free a Message.
Definition: message.c:37
#define FREE(x)
Definition: memory.h:55
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
Convenience wrapper for the library headers.
Message logging.
A local copy of an email.
Definition: message.h:34
char * path
path to temp file
Definition: message.h:36
char * committed_path
the final path generated by mx_msg_commit()
Definition: message.h:37