NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
message.h
Go to the documentation of this file.
1
22
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
33
struct
Message
34
{
35
FILE *
fp
;
36
char
*
path
;
37
char
*
committed_path
;
38
bool
write
;
39
struct
40
{
41
bool
read
: 1;
42
bool
flagged
: 1;
43
bool
replied
: 1;
44
bool
draft
: 1;
45
}
flags
;
46
time_t
received
;
47
};
48
49
void
message_free
(
struct
Message
**ptr);
50
struct
Message
*
message_new
(
void
);
51
52
#endif
/* MUTT_CORE_MESSAGE_H */
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
A local copy of an email.
Definition
message.h:34
Message::fp
FILE * fp
pointer to the message data
Definition
message.h:35
Message::path
char * path
path to temp file
Definition
message.h:36
Message::flags
struct Message::@264267271004327071125374067057142037276212342100 flags
Flags for the Message.
Message::draft
bool draft
Message has been read.
Definition
message.h:44
Message::replied
bool replied
Message has been replied to.
Definition
message.h:43
Message::committed_path
char * committed_path
the final path generated by mx_msg_commit()
Definition
message.h:37
Message::received
time_t received
Time at which this message was received.
Definition
message.h:46
Message::write
bool write
nonzero if message is open for writing
Definition
message.h:38
Message::flagged
bool flagged
Message is flagged.
Definition
message.h:42
Message::read
bool read
Message has been read.
Definition
message.h:41