Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect new incoming messages #490

Open
mitmelon opened this issue Feb 4, 2021 · 1 comment
Open

Detect new incoming messages #490

mitmelon opened this issue Feb 4, 2021 · 1 comment

Comments

@mitmelon
Copy link

mitmelon commented Feb 4, 2021

Please can a method be included to detect new incoming messages only... I know cron will be used for this but i cant find a method that does it for the cron to run

@mitmelon
Copy link
Author

mitmelon commented Feb 4, 2021

I finally found a way of doing this...

$search = new SearchExpression();
$search->addCondition(new Unseen());
$messages = $this->mailbox->getMessages($search);

No longer a new feature

Thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant