23#ifndef MUTT_MAILDIR_SHARED_H
24#define MUTT_MAILDIR_SHARED_H
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() -.
int maildir_rewrite_message(struct Mailbox *m, struct Email *e)
Sync a message in an Maildir folder.
bool maildir_parse_message(const char *fname, bool is_old, struct Email *e)
Actually parse a maildir message.
void maildir_update_mtime(struct Mailbox *m)
Update our record of the Maildir modification time.
FILE * maildir_open_find_message(const char *folder, const char *msg, char **newname)
Find a message by name.
bool maildir_update_flags(struct Mailbox *m, struct Email *e_old, struct Email *e_new)
Update the mailbox flags.
struct Email * maildir_email_new(void)
Create a Maildir Email.
mode_t maildir_umask(struct Mailbox *m)
Create a umask from the mailbox directory.
bool maildir_sync_mailbox_message(struct Mailbox *m, struct Email *e, struct HeaderCache *hc)
Save changes to the mailbox.
bool maildir_parse_stream(FILE *fp, const char *fname, bool is_old, struct Email *e)
Parse a Maildir message.
void maildir_gen_flags(char *dest, size_t destlen, struct Email *e)
Generate the Maildir flags for an email.
int maildir_path_is_empty(struct Buffer *path)
Is the mailbox empty.
void maildir_canon_filename(struct Buffer *dest, const char *src)
Generate the canonical filename for a Maildir folder.
void maildir_parse_flags(struct Email *e, const char *path)
Parse Maildir file flags.
String manipulation buffer.
The envelope/body of an email.
char * path
Path of Email (for local Mailboxes)
A local copy of an email.