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 169 of file message.c.
170{
171 uint32_t uv = 0;
172 unsigned int uid = 0;
174
175 if (sscanf(id, "%u-%u", &uv, &uid) != 2)
176 return 0;
177
178
181
182 return 0;
183}
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 779 of file newsrc.c.
780{
783 char c = '\0';
784
787 {
791 }
792 return 0;
793}
#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 255 of file pop.c.
256{
258 if (!m)
259 return -1;
260
263 return -1;
264
265#ifdef USE_HCACHE
266
268 return 0;
269#endif
270
272 {
274
276 return 0;
277 }
278
279
280
282}
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 -.