49 if (num >= (UINT_MAX /
sizeof(
struct Email *)))
86 return ep ? *ep : NULL;
#define ARRAY_SHRINK(head, num)
Mark a number of slots at the end of the array as unused.
#define ARRAY_SET(head, idx, elem)
Set an element in the array.
#define ARRAY_RESERVE(head, num)
Reserve memory for the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_GET(head, idx)
Return the element at index.
void mutt_exit(int code)
Leave NeoMutt NOW.
size_t imap_msn_shrink(struct MSNArray *msn, size_t num)
Remove a number of entries from the end of the cache.
void imap_msn_free(struct MSNArray *msn)
Free the cache.
size_t imap_msn_highest(const struct MSNArray *msn)
Return the highest MSN in use.
struct Email * imap_msn_get(const struct MSNArray *msn, size_t idx)
Return the Email associated with an msn.
void imap_msn_set(struct MSNArray *msn, size_t idx, struct Email *e)
Cache an Email into a given position.
void imap_msn_reserve(struct MSNArray *msn, size_t num)
Create / reallocate the cache.
void imap_msn_remove(struct MSNArray *msn, size_t idx)
Remove an entry from the cache.
IMAP MSN helper functions.
Convenience wrapper for the library headers.
Notmuch-specific Mailbox data.
The envelope/body of an email.