dovecot-2.1: pop3: Fixed POP3-order sorting.

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 27 18:06:15 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/69826dc7a959
changeset: 13560:69826dc7a959
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 27 18:14:32 2011 +0300
description:
pop3: Fixed POP3-order sorting.

diffstat:

 src/pop3/pop3-client.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (23 lines):

diff -r b36ad0f9b3cf -r 69826dc7a959 src/pop3/pop3-client.c
--- a/src/pop3/pop3-client.c	Tue Sep 27 00:44:03 2011 +0300
+++ b/src/pop3/pop3-client.c	Tue Sep 27 18:14:32 2011 +0300
@@ -118,13 +118,12 @@
 
 	if (!array_is_created(msgnum_to_seq_map))
 		i_array_init(msgnum_to_seq_map, client->messages_count);
-	else {
-		/* add any messages between this and the previous one that had
-		   a POP3 order defined */
-		seq = array_count(msgnum_to_seq_map) + 1;
-		for (; seq <= msgnum; seq++)
-			array_append(msgnum_to_seq_map, &seq, 1);
-	}
+
+	/* add any messages between this and the previous one that had
+	   a POP3 order defined */
+	seq = array_count(msgnum_to_seq_map) + 1;
+	for (; seq <= msgnum; seq++)
+		array_append(msgnum_to_seq_map, &seq, 1);
 	array_append(msgnum_to_seq_map, &mail->seq, 1);
 }
 


More information about the dovecot-cvs mailing list