Mime part numbering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bill

    Mime part numbering

    IMAP_FETCHBODY requires the "part number" to fetch.
    Can anyone point me at how the part numbers are derrived.

    for example, here is the formatted parts array from a message:
    Parts:
    array(2) {
    [0]=object(stdClas s)(12) {
    ["type"]=int(0)
    ["encoding"]=int(0)
    ["ifsubtype"]=int(1)
    ["subtype"]=string(5) "PLAIN"
    ["ifdescript ion"]=int(0)
    ["ifid"]=int(0)
    ["lines"]=int(1)
    ["bytes"]=int(38)
    ["ifdisposit ion"]=int(0)
    ["ifdparamet ers"]=int(0)
    ["ifparamete rs"]=int(1)
    ["parameters "]=array(2) {
    [0]=object(stdClas s)(2) {
    ["attribute"]=string(7) "CHARSET"
    ["value"]=string(10) "ISO-8859-1" }
    [1]=object(stdClas s)(2) {
    ["attribute"]=string(6) "FORMAT"
    ["value"]=string(6) "flowed" } } }
    [1]=object(stdClas s)(15) {
    ["type"]=int(2)
    ["encoding"]=int(0)
    ["ifsubtype"]=int(1)
    ["subtype"]=string(6) "RFC822"
    ["ifdescript ion"]=int(0)
    ["ifid"]=int(0)
    ["lines"]=int(34)
    ["bytes"]=int(1609)
    ["ifdisposit ion"]=int(1)
    ["dispositio n"]=string(6) "INLINE"
    ["ifdparamet ers"]=int(1)
    ["dparameter s"]=array(1) {
    [0]=object(stdClas s)(2) {
    ["attribute"]=string(8) "FILENAME"
    ["value"]=string(21) "TEST OF HTML MAIL.eml" } }
    ["ifparamete rs"]=int(1)
    ["parameters "]=array(1) {
    [0]=object(stdClas s)(2) {
    ["attribute"]=string(4) "NAME"
    ["value"]=string(21) "TEST OF HTML MAIL.eml" } }
    ["parts"]=array(1) {
    [0]=object(stdClas s)(12) {
    ["type"]=int(0)
    ["encoding"]=int(0)
    ["ifsubtype"]=int(1)
    ["subtype"]=string(5) "PLAIN"
    ["ifdescript ion"]=int(0)
    ["ifid"]=int(0)
    ["lines"]=int(10)
    ["bytes"]=int(251)
    ["ifdisposit ion"]=int(0)
    ["ifdparamet ers"]=int(0)
    ["ifparamete rs"]=int(1)
    ["parameters "]=array(2) {
    [0]== object(stdClass )(2) {
    ["attribute"]= string(7) "CHARSET"
    ["value"]= string(10) "ISO-8859-1" }
    [1]= object(stdClass )(2) {
    ["attribute"]= string(6) "FORMAT"
    ["value"]= string(6) "flowed" } } } } } } ["value"]=>
    string(6) "flowed" } } } } } }

    so is there a way of predicting what parts would be the body text ?


    bill
Working...