The function imap2_get_quotaroot() is calling the function Message::expunge(). And it is calling "$client->expunge()" or imap_expunge() function.
The function imap2_get_quotaroot() needs be equivalent of imap_get_quotaroot():
https://www.php.net/manual/en/function.imap-get-quotaroot
But now it is calling expunge functions (imap_expunge — Delete all messages marked for deletion):
https://www.php.net/manual/en/function.imap-expunge.php
|
return Message::expunge($imap, $mailbox); |