Answer the question
In order to leave comments, you need to log in
How to parse letters from mail and not leave them read?
There is a script that pulls letters from Yandex mail from a certain folder and makes all these letters read. Is it possible to make the script select only unread letters and after parsing do not make them read. Parsing uses the "UNSEEN" criterion.
Answer the question
In order to leave comments, you need to log in
You need to use Peek when collecting mail via IMAP. Example: https://www.toptal.com/php/building-an-imap-email-...
Another option - we collect mail not with a php script, but through getmail with the use_peek parameter. The PHP script parses already received emails locally.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question