NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
msn.h
Go to the documentation of this file.
1
24#ifndef MUTT_IMAP_MSN_H
25#define MUTT_IMAP_MSN_H
26
27#include <stdlib.h>
28
29struct MSNArray;
30struct Email;
31
32void imap_msn_free (struct MSNArray *msn);
33struct Email *imap_msn_get (const struct MSNArray *msn, size_t idx);
34size_t imap_msn_highest(const struct MSNArray *msn);
35void imap_msn_remove (struct MSNArray *msn, size_t idx);
36void imap_msn_reserve(struct MSNArray *msn, size_t num);
37void imap_msn_set (struct MSNArray *msn, size_t idx, struct Email *e);
38size_t imap_msn_shrink (struct MSNArray *msn, size_t num);
39
40#endif /* MUTT_IMAP_MSN_H */
size_t imap_msn_shrink(struct MSNArray *msn, size_t num)
Remove a number of entries from the end of the cache.
Definition: msn.c:106
void imap_msn_free(struct MSNArray *msn)
Free the cache.
Definition: msn.c:62
size_t imap_msn_highest(const struct MSNArray *msn)
Return the highest MSN in use.
Definition: msn.c:72
struct Email * imap_msn_get(const struct MSNArray *msn, size_t idx)
Return the Email associated with an msn.
Definition: msn.c:83
void imap_msn_set(struct MSNArray *msn, size_t idx, struct Email *e)
Cache an Email into a given position.
Definition: msn.c:95
void imap_msn_reserve(struct MSNArray *msn, size_t num)
Create / reallocate the cache.
Definition: msn.c:44
void imap_msn_remove(struct MSNArray *msn, size_t idx)
Remove an entry from the cache.
Definition: msn.c:116
The envelope/body of an email.
Definition: email.h:39