dovecot: SEARCH BEFORE/ON/SINCE didn't handling timezones correc...

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 20 20:01:19 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/ac5d76fc8eb2
changeset: 7266:ac5d76fc8eb2
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Feb 20 20:02:30 2008 +0200
description:
SEARCH BEFORE/ON/SINCE didn't handling timezones correctly.

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/index-search.c |    1 +

diffs (11 lines):

diff -r 68241b50fabe -r ac5d76fc8eb2 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c	Sun Feb 17 22:23:46 2008 +0200
+++ b/src/lib-storage/index/index-search.c	Wed Feb 20 20:02:30 2008 +0200
@@ -194,6 +194,7 @@ static int search_arg_match_cached(struc
 	case SEARCH_SINCE:
 		if (mail_get_received_date(ctx->mail, &date) < 0)
 			return -1;
+		date -= ioloop_timezone.tz_minuteswest*60;
 
 		switch (arg->type) {
 		case SEARCH_BEFORE:


More information about the dovecot-cvs mailing list