Edit report at http://bugs.php.net/bug.php?id=39440&edit=1

 ID:                 39440
 Comment by:         krisha at tvnet dot lv
 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:

Will anyone ever  fix this bug? :(

There for ages and still in 5.3..


Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/bug.php?id=39440&edit=1

Reply via email to