Mercurial > dovecot > core-2.2
changeset 13560:69826dc7a959
pop3: Fixed POP3-order sorting.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 27 Sep 2011 18:14:32 +0300 |
parents | b36ad0f9b3cf |
children | e62621d28591 |
files | src/pop3/pop3-client.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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); }