Commit 7401733c 7401733c6eb6f7a342b7f3419444e689caa12974 by Alain Magloire

i.e. it assumes that mbox_get_message() will place the pointer to

message into mum->message member. But mbox_get_message() relies on
1-based message numbers, whereas `mum' pointer is obtained using
0-based indexing:
1 parent 269cef5d
2001-04-23 Sergey Poznyakoff
* mailbox/mbx_mbox.c (mbx_expunge): It assumes that mbox_get_message()
will place the pointer to message into mum->message member. But
mbox_get_message() relies on 1-based message numbers, whereas `mum'
pointer is obtained using 0-based indexing:
2001-04-23 Alain Magloire
Sergey Poznyakoff noted: When the user's mailbox ha zeor size mmap
......
......@@ -700,7 +700,7 @@ mbox_expunge (mailbox_t mailbox)
if (mum->message == 0)
{
message_t msg;
status = mbox_get_message (mailbox, i, &msg);
status = mbox_get_message (mailbox, i + 1, &msg);
if (status != 0)
{
mu_error ("Error expunge:%d: %s", __LINE__,
......