Skip to content
Snippets Groups Projects
Commit cb2a1416 authored by Karl Fogel's avatar Karl Fogel
Browse files

Fix the rest of issue #1 and some other stuff

We now handle the following exceptions when parsing headers:

  * "UnicodeEncodeError: 'utf-8' codec can't encode character '\udcf8'
    in position 64: surrogates not allowed (also from absorb_headers()"

  * "email.errors.HeaderParseError: expected ':' at end of group
    display name but found '@GMAIL.COM"

    (which would then lead to "TypeError: 'ValueTerminal' object does
    not support item assignment")

  * "ValueError: hour must be in 0..23" (from bogus Date headers)

Also:

  * Solve a newly-discovered quoting problem in the output

  * Ingest 'reply-to' as an address-containing header.
parent 46aaf0e8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment