dovecot: Don't compress cache file unneededly when creating the ...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Dec 4 11:05:01 EET 2007
details: http://hg.dovecot.org/dovecot/rev/284c22a7a92e
changeset: 6922:284c22a7a92e
user: Timo Sirainen <tss at iki.fi>
date: Tue Dec 04 11:04:55 2007 +0200
description:
Don't compress cache file unneededly when creating the first messages.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-cache-fields.c | 4 ++--
diffs (14 lines):
diff -r 4aa0a3a2d3f8 -r 284c22a7a92e src/lib-index/mail-cache-fields.c
--- a/src/lib-index/mail-cache-fields.c Tue Dec 04 10:49:10 2007 +0200
+++ b/src/lib-index/mail-cache-fields.c Tue Dec 04 11:04:55 2007 +0200
@@ -312,8 +312,8 @@ int mail_cache_header_fields_read(struct
for (i = 0; i < cache->fields_count; i++)
cache->field_file_map[i] = (uint32_t)-1;
- max_drop_time = cache->index->map->hdr.day_stamp -
- MAIL_CACHE_FIELD_DROP_SECS;
+ max_drop_time = cache->index->map->hdr.day_stamp == 0 ? 0 :
+ cache->index->map->hdr.day_stamp - MAIL_CACHE_FIELD_DROP_SECS;
memset(&field, 0, sizeof(field));
for (i = 0; i < field_hdr->fields_count; i++) {
More information about the dovecot-cvs
mailing list