[issue21448] Email Parser use 100% CPU
jader fabiano
report at bugs.python.org
Tue May 6 22:15:43 CEST 2014
jader fabiano added the comment:
No, The file has 12Mb, because It has attachments. I am going to show an
example.
You can use a file thus:
Date: Tue, May 10:27:17 6 -0300 (BRT)
From: email at email.com.br
MIME-Version: 1.0
To: example at example.com
Subject:example
Content-Type: multipart/mixed; boundary=24f59adc-d522-11e3-a531-00265a0f1361
--24f59adc-d522-11e3-a531-00265a0f1361
Content-Type: multipart/alternative;
boundary=24f59a28-d522-11e3-a531-00265a0f1361
--24f59a28-d522-11e3-a531-00265a0f1361^M
Content-Type: text/html; charset="iso-8859-1" ^M
Content-Transfer-Encoding: 7bit
<br/><font color="#00000" face="verdana" size="3">Test example</b>
--24f59a28-d522-11e3-a531-00265a0f1361--
--24f59adc-d522-11e3-a531-00265a0f1361
Content-Type: application/pdf; name=Example.pdf
Content-Disposition: attachment; filename=Example.pdf
Content-Transfer-Encoding: base64
attachment content in base64......
--24f59adc-d522-11e3-a531-00265a0f1361--
2014-05-06 17:03 GMT-03:00 R. David Murray <report at bugs.python.org>:
>
> R. David Murray added the comment:
>
> We'll need the data file as well. This is going to be a data-dependent
> issue. With a 12MB body, I'm guessing there's some decoding pathology
> involved, which may or may not have been already fixed in python3.
>
> To confirm this you could use HeaderParser instead of Parser, which won't
> try to decode the body.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue21448>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21448>
_______________________________________
More information about the Python-bugs-list
mailing list