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

markAsSeen() not work #415

Closed
xfdr0805 opened this issue Jul 12, 2019 · 0 comments
Closed

markAsSeen() not work #415

xfdr0805 opened this issue Jul 12, 2019 · 0 comments

Comments

@xfdr0805
Copy link

xfdr0805 commented Jul 12, 2019

php version 7.2
imap 1.8
ubuntu server 18.04
IMAP c-Client Version 2007f

Q1:
//$message->markAsSeen(); not work
//$mailbox->setFlag('\Seen','21'); not work
$message->setFlag('\Seen \Flagged \Deleted \Answered');
\Seen or \Unseen is not marked [unseen] field
output header:
[recent] => R
[unseen] =>
[flagged] => F
[answered] => A
[deleted] => D
[draft] =>
[msgno] => 20
Q2:
$messages = $mailbox->getMessages((new Unseen()), \SORTDATE,true);
always return all emails

$messages = $mailbox->getMessages((new RawExpression('SUBJECT "[结案通知]样品联络单" SINCE '.date('d-M-Y'))), \SORTDATE,true);

This works fine, but it's slow when there's a lot of mail, so if you only receive unread messages at a time, it's good to finish processing the messages marked as read

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

No branches or pull requests

1 participant