]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Fixed POP3-order sorting.
authorTimo Sirainen <tss@iki.fi>
Tue, 27 Sep 2011 15:14:32 +0000 (18:14 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 27 Sep 2011 15:14:32 +0000 (18:14 +0300)
src/pop3/pop3-client.c

index dc2cf6ac0b3b830dad8c10c2f3f4e8223b193fd5..5ea989b0c8af1ed6e640304b221a5aab9777da2b 100644 (file)
@@ -118,13 +118,12 @@ msgnum_to_seq_map_add(ARRAY_TYPE(uint32_t) *msgnum_to_seq_map,
 
        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);
 }