In some provider, flagging a message as \Deleted
only mark it as deleted. It won't be deleted before you manually issued EXPUNGE command.
- When your IMAP client retrieve the messages again, it still fetch marked messages because you haven't deleted them.
- In the other side, looks like Yahoo mail interface was configured to hide the message that marked as
\Deleted
and AFAIK it is default configuration on ALL mail client.