-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Can't set \Unseen flag #179
Labels
Bug
Something isn't working
Comments
same issue here! |
I found a way to do it, you need to use the parameter $mode ('+' and '-') in function store in class Imap located here vendor/laminas/laminas-mail/src/Protocol/Imap.php |
Cheers for that. Seem like there should be a way to get to that from setFlags Anyway, workaround code:
To be run after anything like getMessage() or getRawContent() |
Yep! that will do the job. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current requests for the body of an IMAP message don't perform a .PEEK request. As a result I've tried (along with a few variations)
$conn->setFlags($uid, ['\Unseen']);
Result is Exception: cannot set flags, have you tried to set the recent flag or special chars?
Setting a message as \Seen works fine.
Alternatively I overrode getRawContent to perform a RFC822.TEXT.PEEK rather than RFC822.TEXT, however this crashes out as well.
Is there either a way to PEEK a message or set it to unseen?
The text was updated successfully, but these errors were encountered: