D
D
DenPolosin2017-02-11 16:45:09
PHP
DenPolosin, 2017-02-11 16:45:09

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

1 answer(s)
D
Dmitry Shitskov, 2017-02-11
@Zarom

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 question

Ask a Question

731 491 924 answers to any question