Message314297
I haven't read the http rfcs, but my understanding is that they follow the MIME standards, and the email library already has code to do proper parsing and decoding of encoded filenames in Content-Disposition headers. It should be possible to call that code for this use case (the http libraries already depend on the email libraries, although I'm not sure if cgi itself does currently). There may be additional considerations involved in fully supporting the http RFCs, but to determine that someone will need to read both and understand them, which is not a small undertaking :)
In the meantime, I'm pretty sure that using the existing mime header parsing code in the email library (see email.headerregistry) will provide better parsing than the only-handles-simple-cases heuristic in your PR. Granted, I don't think you have to deal with multi-part headers in http, but I vaguely remember that there are other subtleties not handled by a simple split on '. |
|
Date |
User |
Action |
Args |
2018-03-23 02:26:43 | r.david.murray | set | recipients:
+ r.david.murray, barry, vstinner, ezio.melotti, Myroslav.Opyr, martin.panter, piotr.dobrogost, serhiy.storchaka, demian.brecht, pawciobiel |
2018-03-23 02:26:43 | r.david.murray | set | messageid: <1521772003.58.0.467229070634.issue23434@psf.upfronthosting.co.za> |
2018-03-23 02:26:43 | r.david.murray | link | issue23434 messages |
2018-03-23 02:26:41 | r.david.murray | create | |
|