Message255309
When a multipart message erroneously defines a boundary string that conflicts with an inner message's boundary string, the parser ignores the (correct) inner message's boundary, and treats all matching boundary lines as if they belong to the (defective) outer message.
This file from the test_email suite demonstrates the problem:
Python-3.5.0/Lib/test/test_email/data/msg_15.txt
Consequentially, the inner multipart/alternative message is parsed with is_multipart() returning False, and a truncated payload.
Moreover, unit tests like test_same_boundary_inner_outer() expect to find the StartBoundaryNotFoundDefect defect on the inner message in that file, which seems wrong to me, since the inner message is not defective. According to the RFCs, the outer message should have been generated with a boundary string that does not appear anywhere in its encoded body (including the inner message). The outer message is therefore the defective one. |
|
Date |
User |
Action |
Args |
2015-11-25 00:04:36 | forest | set | recipients:
+ forest, barry, r.david.murray |
2015-11-25 00:04:36 | forest | set | messageid: <1448409876.66.0.930152855615.issue25728@psf.upfronthosting.co.za> |
2015-11-25 00:04:36 | forest | link | issue25728 messages |
2015-11-25 00:04:36 | forest | create | |
|