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

 ID:                 65760
 User updated by:    mail at nikha dot org
 Reported by:        mail at nikha dot org
-Summary:            Add a content-type obejct to imap_fetch_overview()
+Summary:            Add content-type to imap_fetch_overview()
 Status:             Open
 Type:               Feature/Change Request
 Package:            IMAP related
 Operating System:   Linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, I mean an additional _property_ of the object, not a new object!


Previous Comments:
------------------------------------------------------------------------
[2013-09-25 15:38:03] mail at nikha dot org

Description:
------------
---
>From manual page: http://www.php.net/function.imap-fetch-overview
---
this function should also return an object reflecting the values in the header 
line "Content-Type:". This is as necessary for mailbox overviews as the other 
lines, the function reflects: Overviews should show, whether mails have 
attachments or not!

Test script:
---------------
no special code for this! 

My script first calls this function. But the missing content-type object forces 
me later to re-fetch the header of every mail to parse the "Content-Type:". 
This works, but is a considerable overhead, that could be avoided, if it's 
provided by the single call of this function.

(And is really stupid, because the function must parse the mail headers anyway, 
why not this line too?)

Expected result:
----------------
An additional object returned by this function, named "type" or whatever you 
like, with at minmum two values: "text" or "multipart". (May also provide 
subtypes like "plain", "mixed" etc, but this is less important)



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65760&edit=1

Reply via email to