This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author corona10
Recipients barry, corona10, doko, r.david.murray, serhiy.storchaka
Date 2017-10-11.05:50:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CA+Z=B_mbP7mQNAddoKFFtNdCB_2Db9na3zZ-gUb2fa-P_-QKxw@mail.gmail.com>
In-reply-to <CA+Z=B_nYoR2QpqvKpCkMBrrMeGitQaQD4YTng_eDGXcatNduzA@mail.gmail.com>
Content
And my patch was wrong, I will re-upload it soon.

2017-10-11 13:51 GMT+09:00 Dong-hee Na <report@bugs.python.org>:
>
> Dong-hee Na <donghee.na92@gmail.com> added the comment:
>
> I found that when email header's self._firstlinelen value is negative
> then self._split() returns an empty list.
> Because when the self._firstlinelen value is negative value then
> 'targetlen' becomes a negative value.
>
> I will update a patch into calculating self.firstlinelen as same as Python3.
>
> 2017-10-11 0:46 GMT+09:00 Serhiy Storchaka <report@bugs.python.org>:
>>
>> Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment:
>>
>> PR 3938 fixes this issue, but I'm wondering why self._split() returns an empty list only for long header names.
>>
>> ----------
>> nosy: +serhiy.storchaka
>>
>> _______________________________________
>> Python tracker <report@bugs.python.org>
>> <https://bugs.python.org/issue31314>
>> _______________________________________
>
> --
> Chungnam National University | Computer Science & Engineering
>
> Tel: +82 010-3353-9127
> Email: donghee.na92@gmail.com
> Linkedin: https://www.linkedin.com/in/dong-hee-na-2b713b49/
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue31314>
> _______________________________________

-- 
Chungnam National University | Computer Science & Engineering

Tel: +82 010-3353-9127
Email: donghee.na92@gmail.com
Linkedin: https://www.linkedin.com/in/dong-hee-na-2b713b49/
History
Date User Action Args
2017-10-11 05:50:13corona10setrecipients: + corona10, barry, doko, r.david.murray, serhiy.storchaka
2017-10-11 05:50:13corona10linkissue31314 messages
2017-10-11 05:50:12corona10create