WIPlib 5.40 / Pop3 delete mail

I try to use the POP3 Client API for reading and deleting mail.
I can read all my mail. But I can’t delete mail.
I use this line to remove a mail:

wip_deleteFile(l_pop3Ctx.CnxChannel, MailIdStr);

I well receive WIP_CEV_DONE after the wip_deleteFile call, but the mail is not removed.

Thanks for your help.

I am using POP3 client within Lua and delete function is working correctly.

The C interface to Lua is using the same function wip_deleteFile(). I wrote this interface long ago, but looking into the code following may be a hint. After reading email and closing the DATA channel, the program idles 1 second and only then issues the command to delete the email. This timeout may enable DATA channel to close properly. This was tested on Ethernet (GPRS may require more time) and on WipLib 5.30.

You may also enable WIP_NET_DEBUG_PORT_UARTx option to trace POP3 progress.

It’s right mail was delete when i close the DATA channel.

Thanks for your help.