--- MailhandlerPhpImapRetrieve.class.php	2012-11-20 14:35:46.357921121 +0100
+++ MailhandlerPhpImapRetrieve.class.php.diff	2012-11-20 14:36:19.593922500 +0100
@@ -384,6 +384,7 @@
       $message = FALSE;
     }
     else {
+      imap_delete($result, $msg_number);
       $imap_uid = ($type == 'pop3') ? $this->fetch_uid($mailbox, $msg_number) : imap_uid($result, $msg_number);
       $message = compact('header', 'body_text', 'body_html', 'mimeparts', 'imap_uid');
     }
