There are many ways to delete cron mails and empty the inbox which is filled by cron job every time it runs. Some time we are running multiple scripts/files every minute.
To make IMAP working with PHP we need to install these modules, install these from synaptic package manager.