NeoMutt  2020-06-26-89-g172cd3
Teaching an old dog new tricks
DOXYGEN
lib.h File Reference

Header cache multiplexor. More...

#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for lib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  EmailCache
 header cache structure More...
 
struct  HCacheEntry
 Wrapper for Email retrieved from the header cache. More...
 

Typedefs

typedef struct EmailCache header_cache_t
 
typedef void(* hcache_namer_t) (const char *path, struct Buffer *dest)
 Prototype for function to compose hcache file names. More...
 

Functions

header_cache_tmutt_hcache_open (const char *path, const char *folder, hcache_namer_t namer)
 open the connection to the header cache More...
 
void mutt_hcache_close (header_cache_t *hc)
 close the connection to the header cache More...
 
int mutt_hcache_store (header_cache_t *hc, const char *key, size_t keylen, struct Email *e, uint32_t uidvalidity)
 store a Header along with a validity datum More...
 
struct HCacheEntry mutt_hcache_fetch (header_cache_t *hc, const char *key, size_t keylen, uint32_t uidvalidity)
 fetch and validate a message's header from the cache More...
 
int mutt_hcache_store_raw (header_cache_t *hc, const char *key, size_t keylen, void *data, size_t dlen)
 store a key / data pair More...
 
void * mutt_hcache_fetch_raw (header_cache_t *hc, const char *key, size_t keylen, size_t *dlen)
 Fetch a message's header from the cache. More...
 
void mutt_hcache_free_raw (header_cache_t *hc, void **data)
 free data fetched with mutt_hcache_fetch_raw() More...
 
int mutt_hcache_delete_header (header_cache_t *hc, const char *key, size_t keylen)
 delete a key / data pair More...
 
bool config_init_hcache (struct ConfigSet *cs)
 Register hcache config variables. More...
 

Variables

char * C_HeaderCache
 Config: (hcache) Directory/file for the header cache database. More...
 
char * C_HeaderCacheBackend
 Config: (hcache) Header cache backend to use. More...
 
short C_HeaderCacheCompressLevel
 Config: (hcache) Level of compression for method. More...
 
char * C_HeaderCacheCompressMethod
 Config: (hcache) Enable generic hcache database compression. More...
 
bool C_MaildirHeaderCacheVerify
 Config: (hcache) Check for maildir changes when opening mailbox. More...
 

Detailed Description

Header cache multiplexor.

Authors
  • Thomas Glanzmann
  • Tobias Werth
  • Brian Fundakowski Feldman
  • Pietro Cerutti
  • Tino Reichardt

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lib.h.

Typedef Documentation

◆ header_cache_t

typedef struct EmailCache header_cache_t

Definition at line 93 of file lib.h.

◆ hcache_namer_t

typedef void(* hcache_namer_t) (const char *path, struct Buffer *dest)

Prototype for function to compose hcache file names.

Parameters
pathPath of message
destBuffer for filename

Definition at line 110 of file lib.h.

Function Documentation

◆ mutt_hcache_open()

header_cache_t* mutt_hcache_open ( const char *  path,
const char *  folder,
hcache_namer_t  namer 
)

open the connection to the header cache

Parameters
pathLocation of the header cache (often as specified by the user)
folderName of the folder containing the messages
namerOptional (might be NULL) client-specific function to form the final name of the hcache database file.
Return values
ptrSuccess, header_cache_t struct
NULLOtherwise

open the connection to the header cache

Definition at line 321 of file hcache.c.

322 {
323  const struct StoreOps *ops = hcache_get_ops();
324  if (!ops)
325  return NULL;
326 
328 
329  /* Calculate the current hcache version from dynamic configuration */
330  if (hcachever == 0x0)
331  {
332  union
333  {
334  unsigned char charval[16];
335  unsigned int intval;
336  } digest;
337  struct Md5Ctx md5ctx;
338 
339  hcachever = HCACHEVER;
340 
341  mutt_md5_init_ctx(&md5ctx);
342 
343  /* Seed with the compiled-in header structure hash */
344  mutt_md5_process_bytes(&hcachever, sizeof(hcachever), &md5ctx);
345 
346  /* Mix in user's spam list */
347  struct Replace *sp = NULL;
348  STAILQ_FOREACH(sp, &SpamList, entries)
349  {
350  mutt_md5_process(sp->regex->pattern, &md5ctx);
351  mutt_md5_process(sp->templ, &md5ctx);
352  }
353 
354  /* Mix in user's nospam list */
355  struct RegexNode *np = NULL;
356  STAILQ_FOREACH(np, &NoSpamList, entries)
357  {
358  mutt_md5_process(np->regex->pattern, &md5ctx);
359  }
360 
361  /* Get a hash and take its bytes as an (unsigned int) hash version */
362  mutt_md5_finish_ctx(&md5ctx, digest.charval);
363  hcachever = digest.intval;
364  }
365 
366 #ifdef USE_HCACHE_COMPRESSION
368  {
369  const struct ComprOps *cops = compr_get_ops();
370 
371  hc->cctx = cops->open(C_HeaderCacheCompressLevel);
372  if (!hc->cctx)
373  {
374  FREE(&hc);
375  return NULL;
376  }
377 
378  /* remember the buffer of database backend */
379  mutt_debug(LL_DEBUG3, "Header cache will use %s compression\n", cops->name);
380  }
381 #endif
382 
383  hc->folder = get_foldername(folder);
384  hc->crc = hcachever;
385 
386  if (!path || (path[0] == '\0'))
387  {
388  FREE(&hc->folder);
389  FREE(&hc);
390  return NULL;
391  }
392 
393  struct Buffer *hcpath = mutt_buffer_pool_get();
394  hcache_per_folder(hcpath, path, hc->folder, namer);
395 
396  hc->ctx = ops->open(mutt_b2s(hcpath));
397  if (!hc->ctx)
398  {
399  /* remove a possibly incompatible version */
400  if (unlink(mutt_b2s(hcpath)) == 0)
401  {
402  hc->ctx = ops->open(mutt_b2s(hcpath));
403  if (!hc->ctx)
404  {
405  FREE(&hc->folder);
406  FREE(&hc);
407  }
408  }
409  }
410 
411  mutt_buffer_pool_release(&hcpath);
412  return hc;
413 }
char * C_HeaderCacheCompressMethod
Config: (hcache) Enable generic hcache database compression.
Definition: config.c:41
char * templ
Template to match.
Definition: regex3.h:112
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
struct Buffer * mutt_buffer_pool_get(void)
Get a Buffer from the pool.
Definition: pool.c:101
Cursor for the MD5 hashing.
Definition: md5.h:36
void mutt_buffer_pool_release(struct Buffer **pbuf)
Free a Buffer from the pool.
Definition: pool.c:112
void mutt_md5_process(const char *str, struct Md5Ctx *md5ctx)
Process a NULL-terminated string.
Definition: md5.c:355
String manipulation buffer.
Definition: buffer.h:33
char * folder
Definition: lib.h:87
void mutt_md5_init_ctx(struct Md5Ctx *md5ctx)
Initialise the MD5 computation.
Definition: md5.c:262
static char * get_foldername(const char *folder)
Where should the cache be stored?
Definition: hcache.c:307
Key Value Store API.
Definition: lib.h:61
const char * name
Compression name.
Definition: lib.h:57
List of regular expressions.
Definition: regex3.h:108
void * cctx
Definition: lib.h:90
struct Regex * regex
Regex containing a regular expression.
Definition: regex3.h:110
void * mutt_md5_finish_ctx(struct Md5Ctx *md5ctx, void *resbuf)
Process the remaining bytes in the buffer.
Definition: md5.c:286
short C_HeaderCacheCompressLevel
Config: (hcache) Level of compression for method.
Definition: config.c:40
void *(* open)(const char *path)
Open a connection to a Store.
Definition: lib.h:75
unsigned int crc
Definition: lib.h:88
#define mutt_b2s(buf)
Definition: buffer.h:41
struct RegexList NoSpamList
List of regexes to whitelist non-spam emails.
Definition: globals.c:43
static void hcache_per_folder(struct Buffer *hcpath, const char *path, const char *folder, hcache_namer_t namer)
Generate the hcache pathname.
Definition: hcache.c:257
struct Regex * regex
Regex containing a regular expression.
Definition: regex3.h:100
static unsigned int hcachever
Definition: hcache.c:61
void *(* open)(short level)
Open a compression context.
Definition: lib.h:67
void * ctx
Definition: lib.h:89
#define STAILQ_FOREACH(var, head, field)
Definition: queue.h:349
List of regular expressions.
Definition: regex3.h:98
struct ReplaceList SpamList
List of regexes and patterns to match spam emails.
Definition: globals.c:44
void mutt_md5_process_bytes(const void *buf, size_t buflen, struct Md5Ctx *md5ctx)
Process a block of data.
Definition: md5.c:373
Header Cache Compression API.
Definition: lib.h:55
#define FREE(x)
Definition: memory.h:40
#define compr_get_ops()
Definition: hcache.c:66
#define mutt_debug(LEVEL,...)
Definition: logging.h:81
char * pattern
printable version
Definition: regex3.h:90
header cache structure
Definition: lib.h:85
#define hcache_get_ops()
Definition: hcache.c:63
Log at debug level 3.
Definition: logging.h:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutt_hcache_close()

void mutt_hcache_close ( header_cache_t hc)

close the connection to the header cache

Parameters
hcPointer to the header_cache_t structure got by mutt_hcache_open()

close the connection to the header cache

Definition at line 418 of file hcache.c.

419 {
420  const struct StoreOps *ops = hcache_get_ops();
421  if (!hc || !ops)
422  return;
423 
424 #ifdef USE_HCACHE_COMPRESSION
426  compr_get_ops()->close(&hc->cctx);
427 #endif
428 
429  ops->close(&hc->ctx);
430  FREE(&hc->folder);
431  FREE(&hc);
432 }
char * C_HeaderCacheCompressMethod
Config: (hcache) Enable generic hcache database compression.
Definition: config.c:41
char * folder
Definition: lib.h:87
Key Value Store API.
Definition: lib.h:61
void * cctx
Definition: lib.h:90
void(* close)(void **ptr)
Close a Store connection.
Definition: lib.h:121
void * ctx
Definition: lib.h:89
#define FREE(x)
Definition: memory.h:40
#define compr_get_ops()
Definition: hcache.c:66
#define hcache_get_ops()
Definition: hcache.c:63
+ Here is the caller graph for this function:

◆ mutt_hcache_store()

int mutt_hcache_store ( header_cache_t hc,
const char *  key,
size_t  keylen,
struct Email e,
uint32_t  uidvalidity 
)

store a Header along with a validity datum

Parameters
hcPointer to the header_cache_t structure got by mutt_hcache_open()
keyMessage identification string
keylenLength of the key string
eEmail to store
uidvalidityIMAP-specific UIDVALIDITY value, or 0 to use the current time
Return values
0Success
numGeneric or backend-specific error code otherwise

store a Header along with a validity datum

Definition at line 525 of file hcache.c.

527 {
528  if (!hc)
529  return -1;
530 
531  int dlen = 0;
532  char *data = dump(hc, e, &dlen, uidvalidity);
533 
534 #ifdef USE_HCACHE_COMPRESSION
536  {
537  /* We don't compress uidvalidity and the crc, so we can check them before
538  * decompressing on fetch(). */
539  size_t hlen = header_size();
540 
541  const struct ComprOps *cops = compr_get_ops();
542 
543  /* data / dlen gets ptr to compressed data here */
544  size_t clen = dlen;
545  void *cdata = cops->compress(hc->cctx, data + hlen, dlen - hlen, &clen);
546  if (!cdata)
547  {
548  FREE(&data);
549  return -1;
550  }
551 
552  char *whole = mutt_mem_malloc(hlen + clen);
553  memcpy(whole, data, hlen);
554  memcpy(whole + hlen, cdata, clen);
555 
556  FREE(&data);
557 
558  data = whole;
559  dlen = hlen + clen;
560  }
561 #endif
562 
563  /* store uncompressed data */
564  struct RealKey *rk = realkey(key, keylen);
565  int rc = mutt_hcache_store_raw(hc, rk->key, rk->len, data, dlen);
566 
567  FREE(&data);
568 
569  return rc;
570 }
char * C_HeaderCacheCompressMethod
Config: (hcache) Enable generic hcache database compression.
Definition: config.c:41
static struct RealKey * realkey(const char *key, size_t keylen)
Compute the real key used in the backend, taking into account the compression method.
Definition: hcache.c:188
static void * dump(header_cache_t *hc, const struct Email *e, int *off, uint32_t uidvalidity)
Serialise an Email object.
Definition: hcache.c:89
size_t len
Definition: hcache.c:179
static size_t header_size(void)
Compute the size of the header with uuid validity and crc.
Definition: hcache.c:73
void *(* compress)(void *cctx, const char *data, size_t dlen, size_t *clen)
Compress header cache data.
Definition: lib.h:81
int mutt_hcache_store_raw(header_cache_t *hc, const char *key, size_t keylen, void *data, size_t dlen)
store a key / data pair
Definition: hcache.c:582
void * cctx
Definition: lib.h:90
char key[1024]
Definition: hcache.c:178
void * mutt_mem_malloc(size_t size)
Allocate memory on the heap.
Definition: memory.c:90
Header Cache Compression API.
Definition: lib.h:55
#define FREE(x)
Definition: memory.h:40
#define compr_get_ops()
Definition: hcache.c:66
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutt_hcache_fetch()

struct HCacheEntry mutt_hcache_fetch ( header_cache_t hc,
const char *  key,
size_t  keylen,
uint32_t  uidvalidity 
)

fetch and validate a message's header from the cache

Parameters
hcPointer to the header_cache_t structure got by mutt_hcache_open()
keyMessage identification string
keylenLength of the string pointed to by key
uidvalidityOnly restore if it matches the stored uidvalidity
Return values
objHCacheEntry containing an Email, empty on failure
Note
This function performs a check on the validity of the data found by comparing it with the crc value of the header_cache_t structure.

fetch and validate a message's header from the cache

Definition at line 437 of file hcache.c.

439 {
440  struct RealKey *rk = realkey(key, keylen);
441  struct HCacheEntry entry = { 0 };
442 
443  size_t dlen;
444  void *data = mutt_hcache_fetch_raw(hc, rk->key, rk->len, &dlen);
445  void *to_free = data;
446  if (!data)
447  {
448  goto end;
449  }
450 
451  /* restore uidvalidity and crc */
452  size_t hlen = header_size();
453  int off = 0;
454  serial_restore_uint32_t(&entry.uidvalidity, data, &off);
455  serial_restore_int(&entry.crc, data, &off);
456  assert((size_t) off == hlen);
457  if (entry.crc != hc->crc || ((uidvalidity != 0) && uidvalidity != entry.uidvalidity))
458  {
459  goto end;
460  }
461 
462 #ifdef USE_HCACHE_COMPRESSION
464  {
465  const struct ComprOps *cops = compr_get_ops();
466 
467  void *dblob = cops->decompress(hc->cctx, (char *) data + hlen, dlen - hlen);
468  if (!dblob)
469  {
470  goto end;
471  }
472  data = (char *) dblob - hlen; /* restore skips uidvalidity and crc */
473  }
474 #endif
475 
476  entry.email = restore(data);
477 
478 end:
479  mutt_hcache_free_raw(hc, &to_free);
480  return entry;
481 }
char * C_HeaderCacheCompressMethod
Config: (hcache) Enable generic hcache database compression.
Definition: config.c:41
static struct RealKey * realkey(const char *key, size_t keylen)
Compute the real key used in the backend, taking into account the compression method.
Definition: hcache.c:188
Wrapper for Email retrieved from the header cache.
Definition: lib.h:98
size_t len
Definition: hcache.c:179
static size_t header_size(void)
Compute the size of the header with uuid validity and crc.
Definition: hcache.c:73
uint32_t uidvalidity
IMAP-specific UIDVALIDITY.
Definition: lib.h:100
void * mutt_hcache_fetch_raw(header_cache_t *hc, const char *key, size_t keylen, size_t *dlen)
Fetch a message&#39;s header from the cache.
Definition: hcache.c:495
void serial_restore_int(unsigned int *i, const unsigned char *d, int *off)
Unpack an integer from a binary blob.
Definition: serialize.c:96
void * cctx
Definition: lib.h:90
void serial_restore_uint32_t(uint32_t *s, const unsigned char *d, int *off)
Unpack an uint32_t from a binary blob.
Definition: serialize.c:108
char key[1024]
Definition: hcache.c:178
unsigned int crc
Definition: lib.h:88
Header Cache Compression API.
Definition: lib.h:55
void mutt_hcache_free_raw(header_cache_t *hc, void **data)
Multiplexor for StoreOps::free.
Definition: hcache.c:512
unsigned int crc
CRC of Email/Body/etc structs.
Definition: lib.h:101
#define compr_get_ops()
Definition: hcache.c:66
void *(* decompress)(void *cctx, const char *cbuf, size_t clen)
Decompress header cache data.
Definition: lib.h:94
struct Email * email
Retrieved email.
Definition: lib.h:102
static struct Email * restore(const unsigned char *d)
Restore an Email from data retrieved from the cache.
Definition: hcache.c:145
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutt_hcache_store_raw()

int mutt_hcache_store_raw ( header_cache_t hc,
const char *  key,
size_t  keylen,
void *  data,
size_t  dlen 
)

store a key / data pair

Parameters
hcPointer to the header_cache_t structure got by mutt_hcache_open()
keyMessage identification string
keylenLength of the string pointed to by key
dataPayload to associate with key
dlenLength of the buffer pointed to by the data parameter
Return values
0Success
numGeneric or backend-specific error code otherwise

Definition at line 582 of file hcache.c.

584 {
585  const struct StoreOps *ops = hcache_get_ops();
586 
587  if (!hc || !ops)
588  return -1;
589 
590  struct Buffer path = mutt_buffer_make(1024);
591 
592  keylen = mutt_buffer_printf(&path, "%s%.*s", hc->folder, (int) keylen, key);
593  int rc = ops->store(hc->ctx, mutt_b2s(&path), keylen, data, dlen);
594  mutt_buffer_dealloc(&path);
595 
596  return rc;
597 }
struct Buffer mutt_buffer_make(size_t size)
Make a new buffer on the stack.
Definition: buffer.c:61
String manipulation buffer.
Definition: buffer.h:33
char * folder
Definition: lib.h:87
Key Value Store API.
Definition: lib.h:61
int mutt_buffer_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Definition: buffer.c:160
int(* store)(void *store, const char *key, size_t klen, void *value, size_t vlen)
Write a Value to the Store.
Definition: lib.h:105
void mutt_buffer_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
Definition: buffer.c:294
#define mutt_b2s(buf)
Definition: buffer.h:41
char * data
Pointer to data.
Definition: buffer.h:35
void * ctx
Definition: lib.h:89
#define hcache_get_ops()
Definition: hcache.c:63
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutt_hcache_fetch_raw()

void* mutt_hcache_fetch_raw ( header_cache_t hc,
const char *  key,
size_t  keylen,
size_t *  dlen 
)

Fetch a message's header from the cache.

Parameters
[in]hcPointer to the header_cache_t structure got by mutt_hcache_open()
[in]keyMessage identification string
[in]keylenLength of the string pointed to by key
[out]dlenLength of the fetched data
Return values
ptrSuccess, the data if found
NULLOtherwise
Note
This function does not perform any check on the validity of the data found.
The returned data must be free with mutt_hcache_free_raw().

Definition at line 495 of file hcache.c.

496 {
497  const struct StoreOps *ops = hcache_get_ops();
498 
499  if (!hc || !ops)
500  return NULL;
501 
502  struct Buffer path = mutt_buffer_make(1024);
503  keylen = mutt_buffer_printf(&path, "%s%.*s", hc->folder, (int) keylen, key);
504  void *blob = ops->fetch(hc->ctx, mutt_b2s(&path), keylen, dlen);
505  mutt_buffer_dealloc(&path);
506  return blob;
507 }
struct Buffer mutt_buffer_make(size_t size)
Make a new buffer on the stack.
Definition: buffer.c:61
String manipulation buffer.
Definition: buffer.h:33
char * folder
Definition: lib.h:87
Key Value Store API.
Definition: lib.h:61
void *(* fetch)(void *store, const char *key, size_t klen, size_t *vlen)
Fetch a Value from the Store.
Definition: lib.h:86
int mutt_buffer_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Definition: buffer.c:160
void mutt_buffer_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
Definition: buffer.c:294
#define mutt_b2s(buf)
Definition: buffer.h:41
void * ctx
Definition: lib.h:89
#define hcache_get_ops()
Definition: hcache.c:63
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutt_hcache_free_raw()

void mutt_hcache_free_raw ( header_cache_t hc,
void **  data 
)

free data fetched with mutt_hcache_fetch_raw()

Parameters
hcPointer to the header_cache_t structure got by mutt_hcache_open()
dataPointer to the data got using mutt_hcache_fetch_raw

free data fetched with mutt_hcache_fetch_raw()

Definition at line 512 of file hcache.c.

513 {
514  const struct StoreOps *ops = hcache_get_ops();
515 
516  if (!hc || !ops || !data || !*data)
517  return;
518 
519  ops->free(hc->ctx, data);
520 }
Key Value Store API.
Definition: lib.h:61
void * ctx
Definition: lib.h:89
void(* free)(void *store, void **ptr)
Free a Value returned by fetch()
Definition: lib.h:93
#define hcache_get_ops()
Definition: hcache.c:63
+ Here is the caller graph for this function:

◆ mutt_hcache_delete_header()

int mutt_hcache_delete_header ( header_cache_t hc,
const char *  key,
size_t  keylen 
)

delete a key / data pair

Parameters
hcPointer to the header_cache_t structure got by mutt_hcache_open()
keyMessage identification string
keylenLength of the string pointed to by key
Return values
0Success
numGeneric or backend-specific error code otherwise

delete a key / data pair

Definition at line 602 of file hcache.c.

603 {
604  const struct StoreOps *ops = hcache_get_ops();
605  if (!hc)
606  return -1;
607 
608  struct Buffer path = mutt_buffer_make(1024);
609 
610  keylen = mutt_buffer_printf(&path, "%s%s", hc->folder, key);
611 
612  int rc = ops->delete_record(hc->ctx, mutt_b2s(&path), keylen);
613  mutt_buffer_dealloc(&path);
614  return rc;
615 }
struct Buffer mutt_buffer_make(size_t size)
Make a new buffer on the stack.
Definition: buffer.c:61
String manipulation buffer.
Definition: buffer.h:33
char * folder
Definition: lib.h:87
Key Value Store API.
Definition: lib.h:61
int mutt_buffer_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Definition: buffer.c:160
void mutt_buffer_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
Definition: buffer.c:294
#define mutt_b2s(buf)
Definition: buffer.h:41
void * ctx
Definition: lib.h:89
int(* delete_record)(void *store, const char *key, size_t klen)
Delete a record from the Store.
Definition: lib.h:115
#define hcache_get_ops()
Definition: hcache.c:63
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ config_init_hcache()

bool config_init_hcache ( struct ConfigSet cs)

Register hcache config variables.

Definition at line 73 of file config.c.

74 {
75  return cs_register_variables(cs, HcacheVars, 0);
76 }
struct ConfigDef HcacheVars[]
Definition: config.c:52
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], int flags)
Register a set of config items.
Definition: set.c:279
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ C_HeaderCache

char* C_HeaderCache

Config: (hcache) Directory/file for the header cache database.

Definition at line 37 of file config.c.

◆ C_HeaderCacheBackend

char* C_HeaderCacheBackend

Config: (hcache) Header cache backend to use.

Definition at line 38 of file config.c.

◆ C_HeaderCacheCompressLevel

short C_HeaderCacheCompressLevel

Config: (hcache) Level of compression for method.

Definition at line 40 of file config.c.

◆ C_HeaderCacheCompressMethod

char* C_HeaderCacheCompressMethod

Config: (hcache) Enable generic hcache database compression.

Definition at line 41 of file config.c.

◆ C_MaildirHeaderCacheVerify

bool C_MaildirHeaderCacheVerify

Config: (hcache) Check for maildir changes when opening mailbox.

Definition at line 43 of file config.c.