What is alternative of java imap function doCommand
in php ?
I want to fire some custom imap extension command but I don\'t find any function to do that
I have switched to zend imap. it supports custom command and fetch.
which solved my problem.
login($user, $pass);
$protocol->select('INBOX');
$storage = new Zend_Mail_Storage_Imap($protocol);
foreach ($storage as $messageId => $message) {
$id = $protocol->fetch('Custom Attribute', $storage->getUniqueId($messageId));
echo "Mail from '{$message->from}': {$message->subject} : Custom Attribute $id \n";
}
?>