/** * Retrieve a EmailIngestionProfile by email address * * @action getByEmailAddress * @param string $emailAddress * @return KalturaEmailIngestionProfile * * @throws KalturaErrors::EMAIL_INGESTION_PROFILE_NOT_FOUND */ function getByEmailAddressAction($emailAddress) { $existingEIP = EmailIngestionProfilePeer::retrieveByEmailAddressNoFilter($emailAddress); if (!$existingEIP) { throw new KalturaAPIException(KalturaErrors::EMAIL_INGESTION_PROFILE_NOT_FOUND, $emailAddress); } $emailIP = new KalturaEmailIngestionProfile(); $emailIP->fromObject($existingEIP, $this->getResponseProfile()); return $emailIP; }