Message71573
| Author |
kcarnold |
| Recipients |
barry, gvanrossum, kcarnold, loewis, richard, skip.montanaro |
| Date |
2008年08月20日.20:50:12 |
| SpamBayes Score |
7.418996e-06 |
| Marked as misclassified |
No |
| Message-id |
<1219265413.24.0.275977608376.issue504152@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This issue still seems to be present in Python 2.5's email module.
feedparser.py line 444-445 says:
# XXX reconsider the joining of folded lines
lhdr = EMPTYSTRING.join(lastvalue)[:-1].rstrip('\r\n')
I think that should be something like:
lhdr = EMPTYSTRING.join(ln.rstrip('\r\n') for ln in lastvalue)[:-1])
The resulting headers still need a fair amount of massaging, though; why
not just use Header instances for the headers? |
|