NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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
33struct MdEmail
34{
35 struct Email *email;
36 char * canon_fname;
38 ino_t inode;
39};
40ARRAY_HEAD(MdEmailArray, struct MdEmail *);
41
42void maildir_entry_free(struct MdEmail **ptr);
43struct MdEmail *maildir_entry_new(void);
44void maildirarray_clear(struct MdEmailArray *mda);
45
46#endif /* MUTT_MAILDIR_MDEMAIL_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
void maildir_entry_free(struct MdEmail **ptr)
Free a Maildir object.
Definition: mdemail.c:48
struct MdEmail * maildir_entry_new(void)
Create a new Maildir entry.
Definition: mdemail.c:39
void maildirarray_clear(struct MdEmailArray *mda)
Free a Maildir array.
Definition: mdemail.c:64
Convenience wrapper for the library headers.
The envelope/body of an email.
Definition: email.h:39
A Maildir Email helper.
Definition: mdemail.h:34
bool header_parsed
Has the Email header been parsed?
Definition: mdemail.h:37
char * canon_fname
Canonical filename for hashing.
Definition: mdemail.h:36
struct Email * email
Temporary Email.
Definition: mdemail.h:35
ino_t inode
Inode number of the file.
Definition: mdemail.h:38