Ok I am currently creating a web based email system using Imap and I am wondering if there is a way to find out which emails have been marked for deleation but haven't been deleted yet.
I've never used it, but according to the manual, it looks like [man]imap_search[/man] will do that (they won't actually be deleted until [man]imap_expunge[/man] happens).