Read POP account email and process data as per business logic in PHP-CodeIgniter