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

[BUG] Mark as Seen boolean not working on getMail() #715

Open
MincDev opened this issue Sep 27, 2023 · 1 comment
Open

[BUG] Mark as Seen boolean not working on getMail() #715

MincDev opened this issue Sep 27, 2023 · 1 comment
Labels
needs investigation This will be tested / debugged or checked out.

Comments

@MincDev
Copy link

MincDev commented Sep 27, 2023

Environment (please complete the following information):

  • PHP IMAP version: 5.0.1
  • PHP Version: 8.2
  • Type of execution: Web Server

Describe the bug
Since PhpImap version 4, the mark as seen boolean on getMail() is no longer working. The mail is not marked as seen even if true is passed in. Versions prior to 4 is working as expected.

To Reproduce
Try to get a mail and notice that it is not marked as seen.

The used code:

$mail = $mailbox->getMail($mailsIds[0], true);

Expected behavior
I expected the email to be marked as seen.

@MincDev MincDev added the needs investigation This will be tested / debugged or checked out. label Sep 27, 2023
@LucianoVandi
Copy link

I'm using version 5 via https://github.com/secit-pl/imap-bundle, and I've encountered the same issue as well. It happens only with certain specific emails. To give you an idea: in the same mailbox, I have 4 messages, 3 are marked as read, and one is not, even if I read them individually. If after $mailbox->getMail() I call $mailbox->markMailAsRead($emailId), then it works.

I believe it's something strictly related to the message itself, because I tried having it forwarded to me, and then I personally sent the same message to the mailbox I'm monitoring, and in that case, it gets marked as seen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation This will be tested / debugged or checked out.
Projects
None yet
Development

No branches or pull requests

2 participants