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.
◆ imap_bcache_delete()
static int imap_bcache_delete |
( |
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 |
Delete an entry from the message cache - 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
◆ pop_bcache_delete()
static int pop_bcache_delete |
( |
const char * |
id, |
|
|
struct BodyCache * |
bcache, |
|
|
void * |
data |
|
) |
| |
|
static |
Delete an entry from the message cache - Implements bcache_list_t -.
Definition at line 256 of file pop.c.
257{
259 if (!m)
260 return -1;
261
264 return -1;
265
266#ifdef USE_HCACHE
267
269 return 0;
270#endif
271
273 {
275
277 return 0;
278 }
279
280
281
283}
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 -.