Open abdullahseba opened 7 years ago
Hello! This is currently not added! I will begin working on it!
looks like it handles all flags.
in ImapClient.php add:
/**
* Set flag message
*
* @param int $ids or string like 1,2,3,4,5 or string like 1:5
* @return bool
*/
public function setFlagMessage($ids, $flags)
{
// We need better docs for this
return imap_setflag_full($this->imap, $ids, $flags, ST_UID);
}
/**
* Unset flag message
*
* @param int $ids or string like 1,2,3,4,5 or string like 1:5
* @return bool
*/
public function unsetFlagMessage($ids, $flags)
{
// We need better docs for this
return imap_clearflag_full($this->imap, $ids, $flags, ST_UID);
}
and use:
$imap->setFlagMessage(message_uid, message_flag);
$imap->unsetFlagMessage(message_uid, message_flag);
default setUnseenMessage() not work since there is no additional option ST_UID. http://php.net/manual/ru/function.imap-clearflag-full.php
Hello. I would be happy to add this code but in order to properly give you credit, I need you to submit a pull request. Would you mind that?
Yes, I'll try. copy the code, this will be enough?
done
Hi Is the a method that sets flags? If not could it be added? Thanks.