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 gvanrossum
Recipients barry, gvanrossum, loewis, richard, skip.montanaro
Date 2007-08-30.03:36:08
SpamBayes Score 0.38017327
Marked as misclassified No
Message-id <1188444968.67.0.366339586526.issue504152@psf.upfronthosting.co.za>
In-reply-to
Content
How about this patch? It basically does

  self.dict[headerseen] += line.rstrip()

which should be what the RFC prescribes, maintaining the invariant that
the dict values don't end in whitespace.

I haven't written a test for this behavior.
Files
File name Uploaded
rfc822.diff gvanrossum, 2007-08-30.03:36:08
History
Date User Action Args
2007-08-30 03:36:08gvanrossumsetspambayes_score: 0.380173 -> 0.38017327
recipients: + gvanrossum, loewis, skip.montanaro, barry, richard
2007-08-30 03:36:08gvanrossumsetspambayes_score: 0.380173 -> 0.380173
messageid: <1188444968.67.0.366339586526.issue504152@psf.upfronthosting.co.za>
2007-08-30 03:36:08gvanrossumlinkissue504152 messages
2007-08-30 03:36:08gvanrossumcreate