NeoMutt  2024-12-12-19-ge4b57e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
message.h
Go to the documentation of this file.
1
23#ifndef MUTT_CORE_MESSAGE_H
24#define MUTT_CORE_MESSAGE_H
25
26#include <stdbool.h>
27#include <stdio.h>
28#include <time.h>
29
33struct Message
34{
35 FILE *fp;
36 char *path;
38 bool write;
39 struct
40 {
41 bool read : 1;
42 bool flagged : 1;
43 bool replied : 1;
44 bool draft : 1;
46 time_t received;
47};
48
49void message_free(struct Message **ptr);
50struct Message *message_new (void);
51
52#endif /* MUTT_CORE_MESSAGE_H */
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
A local copy of an email.
Definition: message.h:34
FILE * fp
pointer to the message data
Definition: message.h:35
char * path
path to temp file
Definition: message.h:36
bool draft
Message has been read.
Definition: message.h:44
bool replied
Message has been replied to.
Definition: message.h:43
char * committed_path
the final path generated by mx_msg_commit()
Definition: message.h:37
time_t received
Time at which this message was received.
Definition: message.h:46
bool write
nonzero if message is open for writing
Definition: message.h:38
bool flagged
Message is flagged.
Definition: message.h:42
bool read
Message has been read.
Definition: message.h:41
struct Message::@0 flags
Flags for the Message.