From: jerome dot groven at gmail dot com
Operating system: Linux White Box EL4
PHP version: 5.2.5
PHP Bug Type: IMAP related
Bug description: FT_PREFETCHTEXT marks messages as read
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 bug report at http://bugs.php.net/?id=44611&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44611&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44611&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44611&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44611&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44611&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44611&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44611&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44611&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44611&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44611&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44611&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44611&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44611&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44611&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44611&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44611&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44611&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44611&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44611&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44611&r=mysqlcfg