dovecot-2.2: pop3: Access sequence numbers correctly.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 13 03:33:34 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/d20059f7d3a1
changeset: 17144:d20059f7d3a1
user: Teemu Huovila <teemu.huovila at dovecot.fi>
date: Thu Feb 13 05:33:13 2014 +0200
description:
pop3: Access sequence numbers correctly.
diffstat:
src/pop3/pop3-commands.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 179834c53f20 -r d20059f7d3a1 src/pop3/pop3-commands.c
--- a/src/pop3/pop3-commands.c Wed Feb 12 00:51:17 2014 +0200
+++ b/src/pop3/pop3-commands.c Thu Feb 13 05:33:13 2014 +0200
@@ -253,7 +253,7 @@
for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
bit = 1 << (msgnum % CHAR_BIT);
if ((client->deleted_bitmask[msgnum / CHAR_BIT] & bit) != 0)
- seq_range_array_add(&deleted_msgs, client->msgnum_to_seq_map[msgnum]);
+ seq_range_array_add(&deleted_msgs, msgnum_to_seq(client, msgnum));
}
}
t_array_init(&seen_msgs, 8);
@@ -261,7 +261,7 @@
for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
bit = 1 << (msgnum % CHAR_BIT);
if ((client->seen_bitmask[msgnum / CHAR_BIT] & bit) != 0)
- seq_range_array_add(&seen_msgs, client->msgnum_to_seq_map[msgnum]);
+ seq_range_array_add(&seen_msgs, msgnum_to_seq(client, msgnum));
}
}
@@ -826,7 +826,7 @@
client->messages_count+1);
for (msgnum = 0; msgnum < client->messages_count; msgnum++) {
client->message_uidls[msgnum] =
- seq_uidls[client->msgnum_to_seq_map[msgnum]];
+ seq_uidls[msgnum_to_seq(client, msgnum)];
}
i_free(seq_uidls);
}
More information about the dovecot-cvs
mailing list