[PEAR-BUG] Req #18693 [Opn->Csd]: decoding of message delivery status

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18693&edit=1

 ID:               18693
 Updated by:       [email protected]
 Reported By:      nicolas at isaveurs dot com
 Summary:          decoding of message delivery status
-Status:           Open
+Status:           Closed
 Type:             Feature/Change Request
 Package:          Mail_mimeDecode
 Operating System: debian
 Package Version:  1.5.5
 PHP Version:      5.3.6
-Assigned To:      
+Assigned To:      alan_k
 Roadmap Versions: 
 New Comment:

-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: alan_k
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks

Added to svn.


Previous Comments:
------------------------------------------------------------------------

[2011-07-28 12:18:52] #cc1bff733e640dbfb28

Description:
------------
Parts with content-type message/delivery-status should 
decoded and not treated as the 
default case.

can simply be done in adding in line 337 

                case 'message/delivery-status':

juste below 
                case 'message/rfc822':

Test script:
---------------
--------------Boundary-00=_3ZCCLHG2QL8000000000
Content-Type: message/delivery-status; name="deliverystatus.txt"

Original-Recipient: <.....@.....>
Action: failed
Diagnostic-Code: smtp; 442 No delivery mechanism available.
Remote-MTA: x.x.x.x


--------------Boundary-00=_3ZCCLHG2QL8000000000


Expected result:
----------------
stdClass Object
                (
                    [headers] => Array
                        (
                            [content-type] => message/delivery-
status; name="deliverystatus.txt"
                        )

                    [ctype_primary] => message
                    [ctype_secondary] => delivery-status
                    [ctype_parameters] => Array
                        (
                            [name] => deliverystatus.txt
                        )

                    [parts] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [headers] => Array
                                        (
                                            [original-recipient] => 
<...@...>
                                            [action] => failed
                                            [diagnostic-code] => smtp;
442 
No delivery mechanism available.
                                            [remote-mta] => x.x.x.x
                                        )

                                    [ctype_primary] => text
                                    [ctype_secondary] => plain
                                    [body] => 

                                )

                        )

                )


Actual result:
--------------
stdClass Object
                (
                    [headers] => Array
                        (
                            [content-type] => message/delivery-
status; name="deliverystatus.txt"
                        )

                    [ctype_primary] => message
                    [ctype_secondary] => delivery-status
                    [ctype_parameters] => Array
                        (
                            [name] => deliverystatus.txt
                        )

                    [body] => Original-Recipient: <....@......>
Action: failed
Diagnostic-Code: smtp; 442 No delivery mechanism available.
Remote-MTA: x.x.x.x



                )

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18693&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.