You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Environment (please complete the following information):
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.
The text was updated successfully, but these errors were encountered: