From:             loikiolki at yahoo dot ca
Operating system: Windows XP
PHP version:      5.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  Custom IMAP flags cannot be fetched

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 bug report at http://bugs.php.net/?id=39440&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39440&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39440&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39440&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39440&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39440&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39440&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39440&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39440&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39440&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39440&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39440&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39440&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39440&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39440&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39440&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39440&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39440&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39440&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39440&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39440&r=mysqlcfg

Reply via email to