E-Mail manipulation based on the imap extension of php