Save message to the header cache.
More...
Save message to the header cache.
- Parameters
-
- Return values
-
- Precondition
- m is not NULL
-
e is not NULL
◆ comp_msg_save_hcache()
static int comp_msg_save_hcache |
( |
struct Mailbox * |
m, |
|
|
struct Email * |
e |
|
) |
| |
|
static |
Save message to the header cache - Implements MxOps::msg_save_hcache() -.
Definition at line 842 of file compress.c.
843{
845 return 0;
846
848
851 return 0;
852
854}
Private data for compress.
const struct MxOps * child_ops
callbacks of de-compressed file
void * compress_info
Compressed mbox module private data.
int(* msg_save_hcache)(struct Mailbox *m, struct Email *e)
◆ imap_msg_save_hcache()
int imap_msg_save_hcache |
( |
struct Mailbox * |
m, |
|
|
struct Email * |
e |
|
) |
| |
Save message to the header cache - Implements MxOps::msg_save_hcache() -.
Definition at line 2192 of file message.c.
2193{
2194 int rc = 0;
2195#ifdef USE_HCACHE
2196 bool close_hc = true;
2199 if (!
mdata || !adata)
2200 return -1;
2202 close_hc = false;
2203 else
2206 if (close_hc)
2208#endif
2209 return rc;
2210}
struct ImapAccountData * imap_adata_get(struct Mailbox *m)
Get the Account data for this mailbox.
struct ImapMboxData * imap_mdata_get(struct Mailbox *m)
Get the Mailbox data for this mailbox.
void imap_hcache_open(struct ImapAccountData *adata, struct ImapMboxData *mdata, bool create)
Open a header cache.
int imap_hcache_put(struct ImapMboxData *mdata, struct Email *e)
Add an entry to the header cache.
void imap_hcache_close(struct ImapMboxData *mdata)
Close the header cache.
void * adata
Private data (for Mailbox backends)
IMAP-specific Account data -.
IMAP-specific Mailbox data -.
void * mdata
Driver specific data.
◆ maildir_msg_save_hcache()
int maildir_msg_save_hcache |
( |
struct Mailbox * |
m, |
|
|
struct Email * |
e |
|
) |
| |
Save message to the header cache - Implements MxOps::msg_save_hcache() -.
Definition at line 622 of file message.c.
623{
624 int rc = 0;
625
629
630 return rc;
631}
int maildir_hcache_store(struct HeaderCache *hc, struct Email *e)
Save an Email to the Header Cache.
struct HeaderCache * maildir_hcache_open(struct Mailbox *m)
Open the Header Cache.
void maildir_hcache_close(struct HeaderCache **ptr)
Close the Header Cache.
◆ mh_msg_save_hcache()
static int mh_msg_save_hcache |
( |
struct Mailbox * |
m, |
|
|
struct Email * |
e |
|
) |
| |
|
static |
Save message to the header cache - Implements MxOps::msg_save_hcache() -.
Definition at line 786 of file mh.c.
787{
788 int rc = 0;
789#ifdef USE_HCACHE
794#endif
795 return rc;
796}
const char * cs_subset_path(const struct ConfigSubset *sub, const char *name)
Get a path config item by name.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
struct HeaderCache * hcache_open(const char *path, const char *folder, hcache_namer_t namer, bool create)
Multiplexor for StoreOps::open.
void hcache_close(struct HeaderCache **ptr)
Multiplexor for StoreOps::close.
int hcache_store_email(struct HeaderCache *hc, const char *key, size_t keylen, struct Email *e, uint32_t uidvalidity)
Multiplexor for StoreOps::store.
char * path
Path of Email (for local Mailboxes)
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
◆ pop_msg_save_hcache()
static int pop_msg_save_hcache |
( |
struct Mailbox * |
m, |
|
|
struct Email * |
e |
|
) |
| |
|
static |
Save message to the header cache - Implements MxOps::msg_save_hcache() -.
Definition at line 1140 of file pop.c.
1141{
1142 int rc = 0;
1143#ifdef USE_HCACHE
1149#endif
1150
1151 return rc;
1152}
struct PopAccountData * pop_adata_get(struct Mailbox *m)
Get the Account data for this mailbox.
static struct HeaderCache * pop_hcache_open(struct PopAccountData *adata, const char *path)
Open the header cache.
void * edata
Driver-specific data.
POP-specific Account data -.
POP-specific Email data -.
const char * uid
UID of email.