For example if Message 3 is deleted / moved to trash, Message 4 is also deleted.
Same for message 2, it would be understandable if this occurred in the parent message which is Message 1, but it's also the case for any message in the thread.
Although this solution would cause a lot of problems when trying to restore the deleted email, but I didn't find any other way.
If anyone has an insight on this, please enlighten me.
Edit: I also tried using $message->delete($expunge = true) but it produced the same output.
Say there's a thread:
Message 1 Message 2 Message 3 Message 4
For example if Message 3 is deleted / moved to trash, Message 4 is also deleted. Same for message 2, it would be understandable if this occurred in the parent message which is Message 1, but it's also the case for any message in the thread.
Here's what I tried doing:
Although this solution would cause a lot of problems when trying to restore the deleted email, but I didn't find any other way. If anyone has an insight on this, please enlighten me.
Edit: I also tried using
$message->delete($expunge = true)
but it produced the same output.