dovecot-1.1: Message sorting by date, arrival or size was broken.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 13 02:19:57 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/1a59699e3e8c
changeset: 7655:1a59699e3e8c
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 13 02:19:53 2008 +0300
description:
Message sorting by date, arrival or size was broken.

diffstat:

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

diffs (21 lines):

diff -r 97e425675c86 -r 1a59699e3e8c src/lib-storage/index/index-sort.c
--- a/src/lib-storage/index/index-sort.c	Fri Jun 13 02:00:07 2008 +0300
+++ b/src/lib-storage/index/index-sort.c	Fri Jun 13 02:19:53 2008 +0300
@@ -88,7 +88,7 @@ static int sort_node_date_cmp(const void
 
 	if (n1->date < n2->date)
 		return -1;
-	if (n2->date > n2->date)
+	if (n1->date > n2->date)
 		return 1;
 
 	return index_sort_node_cmp_type(ctx->mail,
@@ -118,7 +118,7 @@ static int sort_node_size_cmp(const void
 
 	if (n1->size < n2->size)
 		return -1;
-	if (n2->size > n2->size)
+	if (n1->size > n2->size)
 		return 1;
 
 	return index_sort_node_cmp_type(ctx->mail,


More information about the dovecot-cvs mailing list