We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get a list of letters like this: $this->mailbox->searchMailbox('UNSEEN');
$this->mailbox->searchMailbox('UNSEEN');
All letters that I receive are marked as read
I want this not to be - how to disable it? I want to mark letters after processing manually
The text was updated successfully, but these errors were encountered:
$this->mailbox->getMail($id, false);
php-imap/src/PhpImap/Mailbox.php
Line 1081 in 9c1469c
Sorry, something went wrong.
thanks! - I somehow did not see it
Note that saveMail always sets mails to unread. To overcome this the only possibility is to add markMailAsUnread directly afterwards:
saveMail
markMailAsUnread
before:
$mailbox->saveMail($mail_id, 'filename.eml');
after:
$unseen = in_array($mail_id, $mailbox->searchMailbox('UNSEEN', true)); $mailbox->saveMail($mail_id, 'filename.eml'); if ($unseen) { $mailbox->markMailAsUnread($mail_id); }
No branches or pull requests
I get a list of letters like this:
$this->mailbox->searchMailbox('UNSEEN');
All letters that I receive are marked as read
I want this not to be - how to disable it? I want to mark letters after processing manually
The text was updated successfully, but these errors were encountered: