[dev] multipart/mixed attachments

Chuck Hagenbuch chuck at horde.org
Sun Jan 19 13:07:40 PST 2003


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> Chuck - I received this sample message.  However, for me, it views
> perfectly - I see the message/rfc822 part and the two separate html and
> powerpoint parts.  This leads me to believe something is screwy with
> handling of rfc822 parts still.  I'm using courier (1.6 something, I
> believe) and my c-client is 2002.  What are you using?

UW-IMAPd (2002-RC2, it looks like) and the c-client from the same version.

> For debugging purposes, could you put a print_r($body) statement into
> MIME_Structure::parse() and let me know what it looks like.  I want to
> verify if this is an IMP/Horde problem or a quirk in the way IMAP handles
> the message.

Attached is what I get (it was a bit unwieldy to paste it directly in).

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*-------------- next part --------------
stdClass Object
(
    [type] => 1
    [encoding] => 0
    [ifsubtype] => 1
    [subtype] => MIXED
    [ifdescription] => 0
    [ifid] => 0
    [ifdisposition] => 0
    [ifdparameters] => 0
    [ifparameters] => 1
    [parameters] => Array
        (
            [0] => stdClass Object
                (
                    [attribute] => BOUNDARY
                    [value] => ----=_NextPart_000_0002_01C2BE01.5B2FCFE0
                )

        )

    [parts] => Array
        (
            [0] => stdClass Object
                (
                    [type] => 0
                    [encoding] => 0
                    [ifsubtype] => 1
                    [subtype] => PLAIN
                    [ifdescription] => 0
                    [ifid] => 0
                    [lines] => 20
                    [bytes] => 558
                    [ifdisposition] => 0
                    [ifdparameters] => 0
                    [ifparameters] => 1
                    [parameters] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [attribute] => CHARSET
                                    [value] => US-ASCII
                                )

                        )

                )

            [1] => stdClass Object
                (
                    [type] => 2
                    [encoding] => 0
                    [ifsubtype] => 1
                    [subtype] => RFC822
                    [ifdescription] => 0
                    [ifid] => 0
                    [lines] => 477
                    [bytes] => 34986
                    [ifdisposition] => 1
                    [disposition] => ATTACHMENT
                    [ifdparameters] => 0
                    [ifparameters] => 0
                    [parameters] => stdClass Object
                        (
                        )

                    [parts] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [type] => 1
                                    [encoding] => 0
                                    [ifsubtype] => 1
                                    [subtype] => MIXED
                                    [ifdescription] => 0
                                    [ifid] => 0
                                    [ifdisposition] => 0
                                    [ifdparameters] => 0
                                    [ifparameters] => 1
                                    [parameters] => Array
                                        (
                                            [0] => stdClass Object
                                                (
                                                    [attribute] => BOUNDARY
                                                    [value] => ----=_NextPart_000_0000_01C2BE01.5B26A820
                                                )

                                        )

                                    [parts] => Array
                                        (
                                            [0] => stdClass Object
                                                (
                                                    [type] => 0
                                                    [encoding] => 4
                                                    [ifsubtype] => 1
                                                    [subtype] => HTML
                                                    [ifdescription] => 0
                                                    [ifid] => 0
                                                    [lines] => 17
                                                    [bytes] => 487
                                                    [ifdisposition] => 0
                                                    [ifdparameters] => 0
                                                    [ifparameters] => 1
                                                    [parameters] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [attribute] => CHARSET
                                                                    [value] => us-ascii
                                                                )

                                                        )

                                                )

                                            [1] => stdClass Object
                                                (
                                                    [type] => 3
                                                    [encoding] => 3
                                                    [ifsubtype] => 1
                                                    [subtype] => VND.MS-POWERPOINT
                                                    [ifdescription] => 0
                                                    [ifid] => 0
                                                    [bytes] => 33632
                                                    [ifdisposition] => 1
                                                    [disposition] => ATTACHMENT
                                                    [ifdparameters] => 1
                                                    [dparameters] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [attribute] => FILENAME
                                                                    [value] => Vote NO on Article 5.ppt
                                                                )

                                                        )

                                                    [ifparameters] => 1
                                                    [parameters] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [attribute] => NAME
                                                                    [value] => Vote NO on Article 5.ppt
                                                                )

                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)


More information about the dev mailing list