NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
mdemail.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_MAILDIR_MDEMAIL_H
24 #define MUTT_MAILDIR_MDEMAIL_H
25 
26 #include <stdbool.h>
27 #include <sys/types.h>
28 #include "mutt/lib.h"
29 
33 struct MdEmail
34 {
35  struct Email *email;
36  char *canon_fname;
37  bool header_parsed : 1;
38  ino_t inode;
39 };
40 ARRAY_HEAD(MdEmailArray, struct MdEmail *);
41 
42 void maildir_entry_free(struct MdEmail **ptr);
43 struct MdEmail *maildir_entry_new(void);
44 void maildirarray_clear(struct MdEmailArray *mda);
45 
46 #endif /* MUTT_MAILDIR_MDEMAIL_H */
ARRAY_HEAD(MdEmailArray, struct MdEmail *)
The envelope/body of an email.
Definition: email.h:37
void maildir_entry_free(struct MdEmail **ptr)
Free a Maildir object.
Definition: mdemail.c:48
char * canon_fname
Definition: mdemail.h:36
A Maildir Email helper.
Definition: mdemail.h:33
struct Email * email
Definition: mdemail.h:35
void maildirarray_clear(struct MdEmailArray *mda)
Free a Maildir array.
Definition: mdemail.c:64
ino_t inode
Definition: mdemail.h:38
struct MdEmail * maildir_entry_new(void)
Create a new Maildir entry.
Definition: mdemail.c:39
Convenience wrapper for the library headers.
bool header_parsed
Definition: mdemail.h:37