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 tony_nelson
Recipients barry, collinwinter, customdesigned, tony_nelson
Date 2008-03-03.03:47:12
SpamBayes Score 0.033687312
Marked as misclassified No
Message-id <1204516034.48.0.674320358081.issue795081@psf.upfronthosting.co.za>
In-reply-to
Content
If I understand RFC2822 3.2.2. Quoted characters (heh), unquoting must
be done in one pass, so the current replace().replace() is wrong.  It
will change '\\"' to '"', but it should become '\"' when unquoted.

This seems to work:

    re.sub(r'\\(.)',r'\1',s)

I haven't encountered a problem with this; I just came across it while
looking at the file Utils.py (Python 2.4, but unchanged in trunk).  I
will submit a new bug if desired.
History
Date User Action Args
2008-03-03 03:47:14tony_nelsonsetspambayes_score: 0.0336873 -> 0.033687312
recipients: + tony_nelson, barry, collinwinter, customdesigned
2008-03-03 03:47:14tony_nelsonsetspambayes_score: 0.0336873 -> 0.0336873
messageid: <1204516034.48.0.674320358081.issue795081@psf.upfronthosting.co.za>
2008-03-03 03:47:13tony_nelsonlinkissue795081 messages
2008-03-03 03:47:13tony_nelsoncreate