#43425 [Opn->Bgs]: imap_fetchstructure: Undocumented primary body type
| From: | jani@php.net | Date: | Wed, 28 Nov 2007 12:42:41 +0000 |
| Subject: | #43425 [Opn->Bgs]: imap_fetchstructure: Undocumented primary body type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120173@lists.php.net to get a copy of this message | ||
ID: 43425
Updated by: jani@php.net
Reported By: j-pieper at gmx dot net
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: CentOS
PHP Version: 5.2.5
New Comment:
I think this depends on what c-client version you have used to compile
PHP with. I downloaded the latest I could find (
#define TYPETEXT 0 /* unformatted text */
#define TYPEMULTIPART 1 /* multiple part */
#define TYPEMESSAGE 2 /* encapsulated message */
#define TYPEAPPLICATION 3 /* application data */
#define TYPEAUDIO 4 /* audio */
#define TYPEIMAGE 5 /* static image */
#define TYPEVIDEO 6 /* video */
#define TYPEMODEL 7 /* model */
#define TYPEOTHER 8 /* unknown */
#define TYPEMAX 15 /* maximum type code */
And on the manual page http://php.net/imap_fetchstructure there is an
user note containing reply from Mark:
> To allow applications to support types and encodings that are
unknown
> to c-client, c-client will automatically add a (limited) number of
> unknown types and encodings to its tables before resorting to
> TYPEOTHER and ENCOTHER. The names of these added types and
encodings
> are available in the body_types[] and body_encodings[] arrays.
>
> Put another way, TYPEOTHER and ENCOTHER are only used if c-client is
> overflowed with unknown types and/or encodings.
There's already a FR about this, see bug #43061 (I'm closing this one
in favor of that)
Previous Comments:
------------------------------------------------------------------------
[2007-11-27 13:31:21] j-pieper at gmx dot net
Description:
------------
Documentation of imap_fetchstructure() function says that there are 8
primary body types (0-7). Today I got primary body type 9 (Content-Type:
"/unknown"; base64-encoded pdf).
What means primary body type 9? Is there also an primary body type 8?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43425&edit=1