Daniel Atallah - 2004-01-21

Logged In: YES
user_id=325843

The reason it is unable to delete the original message is
because the IMAP protocol doesn't delete the messages from
the server immediately, rather it marks the message to be
deleted.

In order to actually delete the message, you can add the
following line to the end of the main while(1) loop.
$IMAP -> expunge;