53 struct stat st = { 0 };
60 return 0777 & ~st.st_mode;
78 char *t = strrchr(src,
'/');
86 char searchable_bytes[8] = { 0 };
87 snprintf(searchable_bytes,
sizeof(searchable_bytes),
",%c", c_maildir_field_delimiter);
88 char *u = strpbrk(dest->
data, searchable_bytes);
112 bool context_changed = m->
changed;
125 if (e_old->
old != e_new->
old)
132 bool header_changed = e_old->
changed;
138 if (!context_changed)
141 return header_changed;
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
const char * cc_maildir_field_delimiter(void)
Get the cached value of $maildir_field_delimiter.
Convenience wrapper for the core headers.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
Structs that make up an email.
void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG1
Log at debug level 1.
struct MaildirMboxData * maildir_mdata_get(struct Mailbox *m)
Get the private data for this Mailbox.
bool maildir_update_flags(struct Mailbox *m, struct Email *e_old, struct Email *e_new)
Update the mailbox flags.
mode_t maildir_umask(struct Mailbox *m)
Create a umask from the mailbox directory.
void maildir_canon_filename(struct Buffer *dest, const char *src)
Generate the canonical filename for a Maildir folder.
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.
Notmuch-specific Mailbox data.
Prototypes for many functions.
String manipulation buffer.
char * dptr
Current read/write position.
char * data
Pointer to data.
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 changed
Mailbox has been modified.
void * mdata
Driver specific data.
Maildir-specific Mailbox data -.