Handle "From " lines
Opened this issue · 0 comments
jwodder commented
-
Give
NormalizedDict
afrom_line
attribute -
Give the scanner a
from_line_regex
parameter; if the first line of a stanza matches the regex, it is assumed to be a "From" line -
Create a "
SpecialHeader
" enum withFromLine
andBody
values for use as the first element of(header, value)
pairs yielded by the scanner representing "From " lines and bodies- Use the enum values as keys in
NormalizedDict
s instead of having dedicatedfrom_line
andbody
attributes?
- Use the enum values as keys in
-
Give the parser an option for requiring a "From " line
-
Export premade regexes for matching Unix mail "From " lines, HTTP request lines, and HTTP response status lines