Hello All,

I am having some strange problems -- code I tested a while back has broken
and I'm not sure why.

I am receiving an email with an attachment (testing.doc).  when I get the
message I call imap_fetchstructure then check the length of the parts array,
which is one.  It used to always be (at least) two if their were attachments
and zero otherwise.

Now it is one and the file information (name, etc) is no where to be found.
There is a new entry in the message structures parameters array named
BOUNDARY, with the boundary value.

If I call imap_fetchbody with a body part number of two then I get the body
of the attachment but, can't get the name, etc.  Any ideas?

Running PHP 4.3.x

Calling print_r on the message structure returns

stdClass Object (
   [type] => 1
   [encoding] => 0
   [ifsubtype] => 1
   [subtype] => MIXED
   [ifdescription] => 0
   [ifid] => 0
   [bytes] => 27074
   [ifdisposition] => 0
   [ifdparameters] => 0
   [ifparameters] => 1
   [parameters] => Array (
      [0] => stdClass Object (
         [attribute] => BOUNDARY [value]
=> ----=_NextPart_000_000D_01C3DB7A.5BC1DAB0
    )
   )
   [parts] => Array (
      [0] => stdClass Object (
         [type] => 0
         [encoding] => 0
         [ifsubtype] => 1
         [subtype] => PLAIN
         [ifdescription] => 0
         [ifid] => 0
         [bytes] => 16
         [ifdisposition] => 0
         [ifdparameters] => 0
         [ifparameters] => 1
         [parameters] => Array (
            [0] => stdClass Object (
               [attribute] => CHARSET [value] => iso-8859-1
            )
         )
       )
    )
)

TIA,  Daryl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to