Closed Yooootsuba closed 2 years ago
Hi @Yooootsuba ,
you have to call $client->expunge()
at the end. Otherwise those changes aren't committed on the server and therefor the messages won't get deleted. Alternative, you could call $message->delete(true)
instead.
Best regards & happy coding,
I just implemented a function that trying to clean mailbox.
And it always delete a few mails, not all.