View Full Version : imap how to mark as 'deleted' without being real deleted

March 15th, 2008, 05:10 PM
Hi there,

I think this is a php question. I want to mark the email as deleted but without them being deleted. It's like flag them with a D, if the user go to trash you will find the flagged with D messages after the user ticked the messages and pressed 'delete' button the messages will be deleted for real (imap_explunge).

How can I do this? If I use the function imap_delete it indeed flagged them as deleted but the email messages are really deleted when the user sign out (closing mailbox) that is not what I want...

Can you guys help me?