[issue24364] Not all defects pass through email policy

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. -- nosy: +mikecmcleod ___ Python tracker ___ ___ Python-bugs-l

[issue24364] Not all defects pass through email policy

2016-06-25 Thread R. David Murray
R. David Murray added the comment: The name default is future proofing. It will be the default...eventually :) And it is the default now if you use EmailMessage to construct your messages. -- ___ Python tracker

[issue24364] Not all defects pass through email policy

2016-06-25 Thread Martin Panter
Martin Panter added the comment: I see that “compat32” and “default” are actually different things (Compat32 vs EmailPolicy classes). IMO “default” was a bad choice of name, but I guess that ship has already sailed. This patch adds a test_defect_handling.TestCompat32 subclass, so the test met

[issue24364] Not all defects pass through email policy

2016-06-21 Thread R. David Murray
R. David Murray added the comment: test_email/test_email tests the compat32 policy. test_defect_handling tests the default policy. Thus they are not redundant, except of course that they are...it would be better to run the same test with both policies in turn, but I never got as far as setti

[issue24364] Not all defects pass through email policy

2016-06-20 Thread Martin Panter
Martin Panter added the comment: Here is a patch to fix the two defects in Lib/email/feedparser.py. I also made some extra changes to the tests: * Remove some tests from Lib/test/test_email/test_email.py, because I think they were redundant with methods of the same name in test_defect_handling

[issue24364] Not all defects pass through email policy

2016-06-15 Thread Martin Panter
Martin Panter added the comment: In particular, I noticed InvalidHeaderDefect is not raised if a header line begins with a colon (:), and also MisplacedEnvelopeHeaderDefect, if a header line begins "From ", including a space, and is neither the first or last line of the header section. --

[issue24364] Not all defects pass through email policy

2015-06-02 Thread R. David Murray
New submission from R. David Murray: This is a note to myself. While looking at another issue I noticed that I never completed the work to make sure that all message defects discovered by feedparser are passed through the policy defect handler. The fix is simple, the time consuming part is w