Prototype for a mutt_bcache_list() callback function.
More...
Prototype for a mutt_bcache_list() callback function.
- Parameters
-
- Return values
-
-1 | Failure |
>=0 | count of matching items |
mutt_bcache_list() will call this function once for each item in the cache.
◆ msg_cache_clean_cb()
static int msg_cache_clean_cb |
( |
const char * |
id, |
|
|
struct BodyCache * |
bcache, |
|
|
void * |
data |
|
) |
| |
|
static |
Delete an entry from the message cache - Implements bcache_list_t -.
- Return values
-
Definition at line 166 of file message.c.
167{
168 uint32_t uv;
169 unsigned int uid;
171
172 if (sscanf(id, "%u-%u", &uv, &uid) != 2)
173 return 0;
174
175
178
179 return 0;
180}
int mutt_bcache_del(struct BodyCache *bcache, const char *id)
Delete a file from the Body Cache.
void * mutt_hash_int_find(const struct HashTable *table, unsigned int intkey)
Find the HashElem data in a Hash Table element using a key.
IMAP-specific Mailbox data -.
struct BodyCache * bcache
Email body cache.
void * mdata
Driver specific data.
◆ nntp_bcache_delete()
static int nntp_bcache_delete |
( |
const char * |
id, |
|
|
struct BodyCache * |
bcache, |
|
|
void * |
data |
|
) |
| |
|
static |
Remove bcache file - Implements bcache_list_t -.
- Return values
-
Definition at line 785 of file newsrc.c.
786{
789 char c;
790
791 if (!
mdata || (sscanf(
id,
ANUM "%c", &anum, &c) != 1) ||
793 {
797 }
798 return 0;
799}
#define mutt_debug(LEVEL,...)
@ LL_DEBUG2
Log at debug level 2.
NNTP-specific Mailbox data -.
struct BodyCache * bcache
◆ msg_cache_check()
static int msg_cache_check |
( |
const char * |
id, |
|
|
struct BodyCache * |
bcache, |
|
|
void * |
data |
|
) |
| |
|
static |
Check the Body Cache for an ID - Implements bcache_list_t -.
Definition at line 254 of file pop.c.
255{
257 if (!m)
258 return -1;
259
262 return -1;
263
264#ifdef USE_HCACHE
265
267 return 0;
268#endif
269
271 {
273
275 return 0;
276 }
277
278
279
281}
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
struct PopAccountData * pop_adata_get(struct Mailbox *m)
Get the Account data for this mailbox.
struct PopEmailData * pop_edata_get(struct Email *e)
Get the private data for this Email.
static const char * cache_id(const char *id)
Make a message-cache-compatible id.
void * adata
Private data (for Mailbox backends)
void * edata
Driver-specific data.
int msg_count
Total number of messages.
struct Email ** emails
Array of Emails.
POP-specific Account data -.
POP-specific Email data -.