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

Not flagged Spam #47

Closed
lsbescorpion opened this issue Nov 10, 2020 · 1 comment
Closed

Not flagged Spam #47

lsbescorpion opened this issue Nov 10, 2020 · 1 comment
Labels

Comments

@lsbescorpion
Copy link

lsbescorpion commented Nov 10, 2020

Good afternoon, a question, how can I access the messages that are not marked as spam, I have tried this way but it does not return anything, and there are several emails.
$folder->search()->not_flagged('spam')->get();

I also try to assign it the spam flag and it always returns false.
$message->setFlag(['Spam']);

Also looking in the library I found this, what does it mean that it only supports those flags?
private $available_flags = ['recent', 'flagged', 'answered', 'deleted', 'seen', 'draft'];

@Webklex
Copy link
Owner

Webklex commented Dec 11, 2020

Hi @lsbescorpion ,
please use "Flagged" instead of "Spam".

The supported "flag range" is limited by design. These are the "default" flags which are supported by the official rfcs.
You're welcome to prove me wrong :)

Best regards,

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

No branches or pull requests

2 participants