Req #39440 [Com]: Custom IMAP flags cannot be fetched
| From: | christof dot kudla at kudla dot info | Date: | Wed, 19 Jul 2017 15:18:16 +0000 |
| Subject: | Req #39440 [Com]: Custom IMAP flags cannot be fetched | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210138@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=39440&edit=1
ID: 39440
Comment by: christof dot kudla at kudla dot info
Reported by: loikiolki at yahoo dot ca
Summary: Custom IMAP flags cannot be fetched
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: Windows XP
PHP Version: 5.2.0
Block user comment: N
Private report: N
New Comment:
It is possible to use the Zend framework as a workaround. To check for flags,
Zend\Mail\Storage\Message has a method called hasFlag(). With getFlags() you'll get all flags.
Previous Comments:
------------------------------------------------------------------------
[2011-01-19 14:02:39] krisha at tvnet dot lv
Will anyone ever fix this bug? :(
There for ages and still in 5.3..
------------------------------------------------------------------------
[2006-11-09 01:28:53] loikiolki at yahoo dot ca
Description:
------------
None of the existing IMAP functions built into PHP support fetching custom IMAP flags. Existing
functions imap_setflag_full and imap_clearflag_full allow one to set custom flags, but there is no
method available to fetch them back.
Reproduce code:
---------------
<?
// clear custom flag
imap_setflag_full($mbox, $msg_id, '$Label2');
// set custom flag
imap_setflag_full($mbox, $msg_id, '$Label1');
// fetch the flag - we need this!
if (imap_fetchflag_full($mbox, $msg_id, '$Label1'))
echo "Flag \$Label1 is set\n";
else
echo "Flag \$Label1 is not set\n";
// also, maybe include custom flags in functions
// such as imap_headerinfo() to fetch all set flags
// (not sure if this is possible with IMAP protocol)
Expected result:
----------------
Flag $Label1 is set
Actual result:
--------------
Fatal error: Call to undefined function imap_fetchflag_full() in Command line code on line 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=39440&edit=1