String Searching in PST with Ignore Case in PHP
Contents
[
Hide
]
Aspose.Email - String Searching in PST with Ignore Case
To string Searching in PST with Ignore Case using Aspose.Email Java for PHP, simply invoke StringSearchInPST module. Here you can see example code.
PHP Code
$personalStorage=new PersonalStorage();
$fileFormatVersion=new FileFormatVersion();
$pst = $personalStorage->create($dataDir . "search.pst", $fileFormatVersion->Unicode);
$standardIpmFolder=new StandardIpmFolder();
$fi = $pst->createPredefinedFolder("Inbox", $standardIpmFolder->Inbox);
$mapiMessage=new MapiMessage();
$mailMessage=new MailMessage();
$fi->addMessage($mapiMessage->fromMailMessage($mailMessage->load($dataDir . "search.pst")));
$builder = new MailQueryBuilder();
$builder->getFrom()->contains("automated", true);
$query = $builder->getQuery();
$coll = $fi->getContents($query);
print "Total Results:" . (string)$coll->size();
Download Running Code
Download String Searching in PST with Ignore Case (Aspose.Email) from any of the below mentioned social coding sites: