56 return mdata->mh_umask;
58 struct stat st = { 0 };
65 return 0777 & ~st.st_mode;
129 bool context_changed = m->
changed;
142 if (e_old->
old != e_new->
old)
149 bool header_changed = e_old->
changed;
155 if (!context_changed)
158 return header_changed;
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
Convenience wrapper for the core headers.
Structs that make up an email.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG2
Log at debug level 2.
@ LL_DEBUG1
Log at debug level 1.
void mailbox_size_add(struct Mailbox *m, const struct Email *e)
Add an email's size to the total size of a Mailbox.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
struct MaildirMboxData * maildir_mdata_get(struct Mailbox *m)
Get the private data for this Mailbox.
void maildirarray_clear(struct MdEmailArray *mda)
Free a Maildir array.
Convenience wrapper for the library headers.
Many unsorted constants and some structs.
@ MUTT_READ
Messages that have been read.
@ MUTT_FLAG
Flagged messages.
@ MUTT_REPLIED
Messages that have been replied to.
void mx_alloc_memory(struct Mailbox *m)
Create storage for the emails.
Notmuch-specific Mailbox data.
Prototypes for many functions.
#define mutt_set_flag(m, e, flag, bf)
bool maildir_update_flags(struct Mailbox *m, struct Email *e_old, struct Email *e_new)
Update the mailbox flags.
mode_t mh_umask(struct Mailbox *m)
Create a umask from the mailbox directory.
int maildir_move_to_mailbox(struct Mailbox *m, struct MdEmailArray *mda)
Copy the Maildir list to the Mailbox.
The envelope/body of an email.
bool old
Email is seen, but unread.
bool changed
Email has been edited.
bool flagged
Marked important?
bool replied
Email has been replied to.
bool deleted
Email is deleted.
int index
The absolute (unsorted) message number.
bool changed
Mailbox has been modified.
int msg_count
Total number of messages.
int email_max
Number of pointers in emails.
void * mdata
Driver specific data.
struct Email ** emails
Array of Emails.
Maildir-specific Mailbox data -.