dovecot-2.2: dbox: Return cached pop3.order=0 as empty string in...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 27 20:45:15 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/360fd0ccd3dd
changeset: 16399:360fd0ccd3dd
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 27 20:18:35 2013 +0300
description:
dbox: Return cached pop3.order=0 as empty string instead to fix sorting problems.

diffstat:

 src/lib-storage/index/dbox-common/dbox-mail.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4883a8e1db13 -r 360fd0ccd3dd src/lib-storage/index/dbox-common/dbox-mail.c
--- a/src/lib-storage/index/dbox-common/dbox-mail.c	Sun May 26 21:57:36 2013 +0300
+++ b/src/lib-storage/index/dbox-common/dbox-mail.c	Mon May 27 20:18:35 2013 +0300
@@ -176,7 +176,7 @@
 		else {
 			i_assert(str_len(str) == sizeof(order));
 			memcpy(&order, str_data(str), sizeof(order));
-			*value_r = dec2str(order);
+			*value_r = order == 0 ? "" : dec2str(order);
 		}
 		return 0;
 	}


More information about the dovecot-cvs mailing list