I open the email box with imap_open(), process the emails, then mark each one for deletion with imap_delete(). Then I close the connection with imap_close($box,CL_EXPUNGE). But the emails do not get deleted.
I tried putting an imap_expunge() command in prior to the imap_close() call, but that didn't do the trick either.
Any suggestions?
Thanks,
Mel