dovecot-1.0: SEARCH BEFORE/ON/SINCE didn't handling timezones co...

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


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

diffstat:

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

diffs (19 lines):

diff -r 75060c30fbd6 -r b8b4ffa5fd6e src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c	Sun Feb 17 13:46:09 2008 +0200
+++ b/src/lib-storage/index/index-search.c	Wed Feb 20 20:02:31 2008 +0200
@@ -1,6 +1,7 @@
 /* Copyright (C) 2002 Timo Sirainen */
 
 #include "lib.h"
+#include "ioloop.h"
 #include "istream.h"
 #include "str.h"
 #include "message-address.h"
@@ -194,6 +195,7 @@ static int search_arg_match_cached(struc
 		date = mail_get_received_date(ctx->mail);
 		if (date == (time_t)-1)
 			return -1;
+		date -= ioloop_timezone.tz_minuteswest*60;
 
 		if (!imap_parse_date(value, &search_time))
 			return 0;


More information about the dovecot-cvs mailing list