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

SEEN SINCE Issue #720

Open
NathanielB2 opened this issue Nov 28, 2023 · 0 comments
Open

SEEN SINCE Issue #720

NathanielB2 opened this issue Nov 28, 2023 · 0 comments

Comments

@NathanielB2
Copy link

NathanielB2 commented Nov 28, 2023

Environment (please complete the following information):

  • PHP IMAP version: 3.0 XXXXX as I do not see a version file or it listed anywhere in the files I download the version I'm using 2 months ago or so.
  • PHP Version: 7.4
  • Type of execution: Daemon

Your Text
A clear and concise description of what you want.

I'm using cron to fetch unseen emails once per minute. The emails are orders that are made from a online ordering system for restaurants that once orders are made they send an email. THEY ALL refuse to send this data using webhook so we have no choice to fetch the data from the emails they send. I have been doing this since we all went on covid lock-down with no issues. We are on a VPS and can handle the load.

The question, I ran into something odd and I guess it's because I do not fully understand how PHP-imap is fetching the emails SEEN or UNSEEN by date. I have a test order that contains new products I need to get the data from so I wanted to run test from the test order. After the email was in the inbox I ran the test code for UNSEEN for 28 November 2023 and the order and data was shown on the screen for the echos and print_r I have placed. The issue is the email is marked seen after fetching it but when I change the code to SEEN SINCE 28 November 2023 the order email will not fetch. I have changed the date and still nothing. I then put it back to UNSEEN and marked in the email server as unseen and once I refresh its shown again and marked seen.

It does find older SEEN emails by date just not the latest ones on the current day. Is this a server time issue maybe?

Any help would be greatly appreciated.

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