NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
hcache.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_MAILDIR_HCACHE_H
24
#define MUTT_MAILDIR_HCACHE_H
25
26
#include <stdlib.h>
27
28
struct
Email
;
29
struct
HeaderCache
;
30
struct
Mailbox
;
31
32
#ifdef USE_HCACHE
33
34
void
maildir_hcache_close
(
struct
HeaderCache
**ptr);
35
int
maildir_hcache_delete
(
struct
HeaderCache
*hc,
struct
Email
*e);
36
struct
HeaderCache
*
maildir_hcache_open
(
struct
Mailbox
*m);
37
struct
Email
*
maildir_hcache_read
(
struct
HeaderCache
*hc,
struct
Email
*e,
const
char
*fn);
38
int
maildir_hcache_store
(
struct
HeaderCache
*hc,
struct
Email
*e);
39
40
#else
41
42
static
inline
void
maildir_hcache_close
(
struct
HeaderCache
**ptr) {}
43
static
inline
int
maildir_hcache_delete
(
struct
HeaderCache
*hc,
struct
Email
*e) {
return
0; }
44
static
inline
struct
HeaderCache
*
maildir_hcache_open
(
struct
Mailbox
*m) {
return
NULL; }
45
static
inline
struct
Email
*
maildir_hcache_read
(
struct
HeaderCache
*hc,
struct
Email
*e,
const
char
*fn) {
return
NULL; }
46
static
inline
int
maildir_hcache_store
(
struct
HeaderCache
*hc,
struct
Email
*e) {
return
0; }
47
48
#endif
49
50
#endif
/* MUTT_MAILDIR_HCACHE_H */
maildir_hcache_store
int maildir_hcache_store(struct HeaderCache *hc, struct Email *e)
Save an Email to the Header Cache.
Definition
hcache.c:163
maildir_hcache_read
struct Email * maildir_hcache_read(struct HeaderCache *hc, struct Email *e, const char *fn)
Read an Email from the Header Cache.
Definition
hcache.c:121
maildir_hcache_open
struct HeaderCache * maildir_hcache_open(struct Mailbox *m)
Open the Header Cache.
Definition
hcache.c:104
maildir_hcache_delete
int maildir_hcache_delete(struct HeaderCache *hc, struct Email *e)
Delete an Email from the Header Cache.
Definition
hcache.c:89
maildir_hcache_close
void maildir_hcache_close(struct HeaderCache **ptr)
Close the Header Cache.
Definition
hcache.c:77
Email
The envelope/body of an email.
Definition
email.h:39
HeaderCache
Header Cache.
Definition
lib.h:87
Mailbox
A mailbox.
Definition
mailbox.h:81