ID: 43425 Updated by: [EMAIL PROTECTED] 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