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 781 of file newsrc.c.
782{
785 char c = '\0';
786
789 {
793 }
794 return 0;
795}
#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 -.