40#ifndef MUTT_MAILDIR_LIB_H
41#define MUTT_MAILDIR_LIB_H
Convenience wrapper for the core headers.
struct MxOps MxMaildirOps
Maildir Mailbox - Implements MxOps -.
struct MxOps MxMhOps
MH Mailbox - Implements MxOps -.
bool maildir_msg_open_new(struct Mailbox *m, struct Message *msg, const struct Email *e)
Open a new message in a Mailbox - Implements MxOps::msg_open_new() -.
MailboxType
Supported mailbox formats.
int mh_check_empty(const char *path)
Is mailbox empty.
int mh_sync_mailbox_message(struct Mailbox *m, int msgno, struct HeaderCache *hc)
Save changes to the mailbox.
FILE * maildir_open_find_message(const char *folder, const char *msg, char **newname)
Find a new.
bool maildir_update_flags(struct Mailbox *m, struct Email *e_old, struct Email *e_new)
Update the mailbox flags.
struct Email * maildir_parse_message(enum MailboxType type, const char *fname, bool is_old, struct Email *e)
Actually parse a maildir message.
int maildir_check_empty(const char *path)
Is the mailbox empty.
void maildir_gen_flags(char *dest, size_t destlen, struct Email *e)
Generate the Maildir flags for an email.
struct Email * maildir_parse_stream(enum MailboxType type, FILE *fp, const char *fname, bool is_old, struct Email *e)
Parse a Maildir message.
bool maildir_sync_mailbox_message(struct Mailbox *m, int msgno, struct HeaderCache *hc)
Save changes to the mailbox.
void maildir_parse_flags(struct Email *e, const char *path)
Parse Maildir file flags.
The envelope/body of an email.
int msgno
Number displayed to the user.
char * path
Path of Email (for local Mailboxes)
A local copy of an email.