From: Timo Sirainen Date: Mon, 10 May 2004 19:00:36 +0000 (+0300) Subject: Message deletion deleted wrong messages X-Git-Tag: 1.1.alpha1~4100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a41db7faccdc869ec8203454ec7d097c11ea9d9;p=thirdparty%2Fdovecot%2Fcore.git Message deletion deleted wrong messages --HG-- branch : HEAD --- diff --git a/src/pop3/commands.c b/src/pop3/commands.c index 828f1d5fe2..13db0c6b05 100644 --- a/src/pop3/commands.c +++ b/src/pop3/commands.c @@ -169,7 +169,7 @@ static int expunge_mails(struct client *client, struct mailbox *box) while ((mail = mailbox_search_next(ctx)) != NULL) { i = mail->seq-1; - if ((client->deleted_bitmask[i >> CHAR_BIT] & + if ((client->deleted_bitmask[i / CHAR_BIT] & (1 << (i % CHAR_BIT))) != 0) { if (mail->expunge(mail) < 0) { failed = TRUE;