Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7855:b5a6e6783786 HEAD
Message sorting by date, arrival or size was broken.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jun 2008 02:19:53 +0300 |
parents | ea275bc7c8a1 |
children | 3c8736e8f08d |
files | src/lib-storage/index/index-sort.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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,