Hello.
If i connect to my mailserver with POP3 or IMAP, imap_fetchstructure returns diffrent depending on how i connect.

if i connect with POP3, everything is as its supposed to be. But with IMAP, it does not return as much as with pop.
ifdisposition is always false, no boundary, arent return when using IMAP.

this is the output:

Connecting with pop3...
Fetchingstructure...
Prasing mail...

stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[bytes] => 28390
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => BOUNDARY
[value] => ----=_NextPart_000_0047_01C1F7F9.C5E19FE0
)

    )

[parts] => Array
    (
        [0] => stdClass Object
            (
                [type] => 1
                [encoding] => 0
                [ifsubtype] => 1
                [subtype] => ALTERNATIVE
                [ifdescription] => 0
                [ifid] => 0
                [bytes] => 1162
                [ifdisposition] => 0
                [ifdparameters] => 0
                [ifparameters] => 1
                [parameters] => Array
                    (
                        [0] => stdClass Object
                            (
                                [attribute] => BOUNDARY
                                [value] => ----=_NextPart_001_0048_01C1F7F9.C5E19FE0
                            )

                    )

                [parts] => Array
                    (
                        [0] => stdClass Object
                            (
                                [type] => 0
                                [encoding] => 4
                                [ifsubtype] => 1
                                [subtype] => PLAIN
                                [ifdescription] => 0
                                [ifid] => 0
                                [lines] => 8
                                [bytes] => 130
                                [ifdisposition] => 0
                                [ifdparameters] => 0
                                [ifparameters] => 1
                                [parameters] => Array
                                    (
                                        [0] => stdClass Object
                                            (
                                                [attribute] => CHARSET
                                                [value] => iso-8859-1
                                            )

                                    )

                            )

                        [1] => stdClass Object
                            (
                                [type] => 0
                                [encoding] => 4
                                [ifsubtype] => 1
                                [subtype] => HTML
                                [ifdescription] => 0
                                [ifid] => 0
                                [lines] => 16
                                [bytes] => 696
                                [ifdisposition] => 0
                                [ifdparameters] => 0
                                [ifparameters] => 1
                                [parameters] => Array
                                    (
                                        [0] => stdClass Object
                                            (
                                                [attribute] => CHARSET
                                                [value] => iso-8859-1
                                            )

                                    )

                            )

                    )

            )

        [1] => stdClass Object
            (
                [type] => 3
                [encoding] => 3
                [ifsubtype] => 1
                [subtype] => X-ZIP-COMPRESSED
                [ifdescription] => 0
                [ifid] => 0
                [bytes] => 26780
                [ifdisposition] => 1
                [disposition] => ATTACHMENT
                [ifdparameters] => 1
                [dparameters] => Array
                    (
                        [0] => stdClass Object
                            (
                                [attribute] => FILENAME
                                [value] => GPLFIX.ZIP
                            )

                    )

                [ifparameters] => 1
                [parameters] => Array
                    (
                        [0] => stdClass Object
                            (
                                [attribute] => NAME
                                [value] => GPLFIX.ZIP
                            )

                    )

            )

    )

)

Pop oK!
closing pop3...

Connecting with IMAP...
Fetchingstructure...
Prasing mail...

stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 0
[parameters] => stdClass Object
(
)

[parts] => Array
    (
        [0] => stdClass Object
            (
                [type] => 1
                [encoding] => 0
                [ifsubtype] => 1
                [subtype] => ALTERNATIVE
                [ifdescription] => 0
                [ifid] => 0
                [ifdisposition] => 0
                [ifdparameters] => 0
                [ifparameters] => 0
                [parameters] => stdClass Object
                    (
                    )

                [parts] => Array
                    (
                        [0] => stdClass Object
                            (
                                [type] => 0
                                [encoding] => 4
                                [ifsubtype] => 1
                                [subtype] => PLAIN
                                [ifdescription] => 0
                                [ifid] => 0
                                [lines] => 9
                                [bytes] => 132
                                [ifdisposition] => 0
                                [ifdparameters] => 0
                                [ifparameters] => 1
                                [parameters] => Array
                                    (
                                        [0] => stdClass Object
                                            (
                                                [attribute] => charset
                                                [value] => iso-8859-1
                                            )

                                    )

                            )

                        [1] => stdClass Object
                            (
                                [type] => 0
                                [encoding] => 4
                                [ifsubtype] => 1
                                [subtype] => HTML
                                [ifdescription] => 0
                                [ifid] => 0
                                [lines] => 17
                                [bytes] => 698
                                [ifdisposition] => 0
                                [ifdparameters] => 0
                                [ifparameters] => 1
                                [parameters] => Array
                                    (
                                        [0] => stdClass Object
                                            (
                                                [attribute] => charset
                                                [value] => iso-8859-1
                                            )

                                    )

                            )

                    )

            )

        [1] => stdClass Object
            (
                [type] => 3
                [encoding] => 3
                [ifsubtype] => 1
                [subtype] => X-ZIP-COMPRESSED
                [ifdescription] => 0
                [ifid] => 0
                [bytes] => 26782
                [ifdisposition] => 0
                [ifdparameters] => 0
                [ifparameters] => 1
                [parameters] => Array
                    (
                        [0] => stdClass Object
                            (
                                [attribute] => name
                                [value] => GPLFIX.ZIP
                            )

                    )

            )

    )

)

closing IMAP...

    Write a Reply...