Req #44611 [Opn->Wfx]: FT_PREFETCHTEXT marks messages as read

From: Date: Mon, 16 Aug 2021 14:40:33 +0000
Subject: Req #44611 [Opn->Wfx]: FT_PREFETCHTEXT marks messages as read
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235861@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=44611&edit=1

 ID:                 44611
 Updated by:         cmb@php.net
 Reported by:        jerome dot groven at gmail dot com
 Summary:            FT_PREFETCHTEXT marks messages as read
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            IMAP related
 Operating System:   Linux White Box EL4
 PHP Version:        5.2.5
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Given there have been no further comments or upvotes, it seems
there is not much need for this feature.


Previous Comments:
------------------------------------------------------------------------
[2008-04-02 13:59:43] jerome dot groven at gmail dot com

Description:
------------
The imap_fetchheader function could have FT_PREFETCHTEXT option to return the raw message headers.
It could be usefull if you have to parse headers like Message-Context or Content-Class which are not
returned with a function like imap_fetch_overview.
The problem is that when I set the FT_PREFETCHTEXT option, my message is flagged to Seen (readed
mail), so it's pretty annoying. When I remove this option flag, everything's fine.

Reproduce code:
---------------
$this->mbox = imap_open("{127.0.0.1/imap/novalidate-cert/notls/norsh}INBOX",
"login", "password");

$raw_headers = imap_fetchheader($this->mbox, 1, FT_PREFETCHTEXT|FT_UID);

Expected result:
----------------
I just want to retrieve all of the headers. And I didn't want to change the read status of my
message.
If I set "FT_UID" instead of "FT_PREFETCHTEXT|FT_UID", my message is not marked
as read but I couldn't get all the headers.

Actual result:
--------------
Actually, my message is marked as read (Seen flag).


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=44611&edit=1


Thread (2 messages)

« previous php.bugs (#235861) next »