php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #44611 FT_PREFETCHTEXT marks messages as read
Submitted: 2008-04-02 13:59 UTC Modified: 2021-08-16 14:40 UTC
From: jerome dot groven at gmail dot com Assigned: cmb (profile)
Status: Wont fix Package: IMAP related
PHP Version: 5.2.5 OS: Linux White Box EL4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
10 + 23 = ?
Subscribe to this entry?

 
 [2008-04-02 13:59 UTC] 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).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-08 21:23 UTC] jani@php.net
-Package: Feature/Change Request +Package: IMAP related
 [2021-08-16 14:40 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-16 14:40 UTC] cmb@php.net
Given there have been no further comments or upvotes, it seems
there is not much need for this feature.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC