dovecot-2.2: lib-storage: Added mail_always_cache_fields setting.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 15 13:25:09 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/9275238a88bb
changeset: 16356:9275238a88bb
user: Timo Sirainen <tss at iki.fi>
date: Wed May 15 13:20:43 2013 +0300
description:
lib-storage: Added mail_always_cache_fields setting.
diffstat:
src/lib-storage/index/index-storage.c | 4 ++++
src/lib-storage/mail-storage-settings.c | 2 ++
src/lib-storage/mail-storage-settings.h | 1 +
3 files changed, 7 insertions(+), 0 deletions(-)
diffs (44 lines):
diff -r 4c9420265987 -r 9275238a88bb src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Sat May 11 17:08:12 2013 +0200
+++ b/src/lib-storage/index/index-storage.c Wed May 15 13:20:43 2013 +0300
@@ -65,6 +65,10 @@
set_cache_decisions("mail_cache_fields",
set->mail_cache_fields,
MAIL_CACHE_DECISION_TEMP);
+ set_cache_decisions("mail_always_cache_fields",
+ set->mail_always_cache_fields,
+ MAIL_CACHE_DECISION_YES |
+ MAIL_CACHE_DECISION_FORCED);
set_cache_decisions("mail_never_cache_fields",
set->mail_never_cache_fields,
MAIL_CACHE_DECISION_NO |
diff -r 4c9420265987 -r 9275238a88bb src/lib-storage/mail-storage-settings.c
--- a/src/lib-storage/mail-storage-settings.c Sat May 11 17:08:12 2013 +0200
+++ b/src/lib-storage/mail-storage-settings.c Wed May 15 13:20:43 2013 +0300
@@ -33,6 +33,7 @@
DEF(SET_STR_VARS, mail_attribute_dict),
DEF(SET_UINT, mail_prefetch_count),
DEF(SET_STR, mail_cache_fields),
+ DEF(SET_STR, mail_always_cache_fields),
DEF(SET_STR, mail_never_cache_fields),
DEF(SET_UINT, mail_cache_min_mail_count),
DEF(SET_TIME, mailbox_idle_check_interval),
@@ -69,6 +70,7 @@
.mail_attribute_dict = "",
.mail_prefetch_count = 0,
.mail_cache_fields = "flags",
+ .mail_always_cache_fields = "",
.mail_never_cache_fields = "imap.envelope",
.mail_cache_min_mail_count = 0,
.mailbox_idle_check_interval = 30,
diff -r 4c9420265987 -r 9275238a88bb src/lib-storage/mail-storage-settings.h
--- a/src/lib-storage/mail-storage-settings.h Sat May 11 17:08:12 2013 +0200
+++ b/src/lib-storage/mail-storage-settings.h Wed May 15 13:20:43 2013 +0300
@@ -18,6 +18,7 @@
const char *mail_attribute_dict;
unsigned int mail_prefetch_count;
const char *mail_cache_fields;
+ const char *mail_always_cache_fields;
const char *mail_never_cache_fields;
unsigned int mail_cache_min_mail_count;
unsigned int mailbox_idle_check_interval;
More information about the dovecot-cvs
mailing list