NeoMutt  2023-05-17-16-g61469c
Teaching an old dog new tricks
DOXYGEN
msn.h
Go to the documentation of this file.
1
23#ifndef MUTT_IMAP_MSN_H
24#define MUTT_IMAP_MSN_H
25
26#include <stdlib.h>
27
28struct MSN;
29struct Email;
30
31void imap_msn_free (struct MSN *msn);
32struct Email *imap_msn_get (const struct MSN *msn, size_t idx);
33size_t imap_msn_highest(const struct MSN *msn);
34void imap_msn_remove (struct MSN *msn, size_t idx);
35void imap_msn_reserve(struct MSN *msn, size_t num);
36void imap_msn_set (struct MSN *msn, size_t idx, struct Email *e);
37size_t imap_msn_shrink (struct MSN *msn, size_t num);
38
39#endif /* MUTT_IMAP_MSN_H */
void imap_msn_set(struct MSN *msn, size_t idx, struct Email *e)
Cache an Email into a given position.
Definition: msn.c:92
void imap_msn_free(struct MSN *msn)
Free the cache.
Definition: msn.c:59
size_t imap_msn_shrink(struct MSN *msn, size_t num)
Remove a number of entries from the end of the cache.
Definition: msn.c:103
void imap_msn_reserve(struct MSN *msn, size_t num)
Create / reallocate the cache.
Definition: msn.c:41
void imap_msn_remove(struct MSN *msn, size_t idx)
Remove an entry from the cache.
Definition: msn.c:113
size_t imap_msn_highest(const struct MSN *msn)
Return the highest MSN in use.
Definition: msn.c:69
struct Email * imap_msn_get(const struct MSN *msn, size_t idx)
Return the Email associated with an msn.
Definition: msn.c:80
The envelope/body of an email.
Definition: email.h:37