From 9a41db7faccdc869ec8203454ec7d097c11ea9d9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 10 May 2004 22:00:36 +0300 Subject: [PATCH] Message deletion deleted wrong messages --HG-- branch : HEAD --- src/pop3/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3