Implementing this fix required a lot of background research, but the code changes ended up being less extensive than originally envisaged. In essence, the changes are:
modify the PARSETREE signature so as to include two new values that enhance the features of to_string and of_string, called to_string_line_feed and of_string_line_feed, respectively
of_string_line_feed has the same behavior as of_string, except that it also determines the line ending of the input and returns that information, so that it can be used later
to_string_line_feed has the same behavior as to_string, except that it takes line feed information as an additional input, used to determine how to pre and post-process the input when Mr. Mime is the backend
acopy_email now uses these line feed-enhanced functions in place of the old to_string and of_string
Lib.Convert has two implementations of each of these parsing and serializing functions, one for the Mrmime_converter module and one for the Ocamlnet_converter module.
Fixes #90.
Implementing this fix required a lot of background research, but the code changes ended up being less extensive than originally envisaged. In essence, the changes are:
PARSETREE
signature so as to include two new values that enhance the features ofto_string
andof_string
, calledto_string_line_feed
andof_string_line_feed
, respectivelyof_string_line_feed
has the same behavior asof_string
, except that it also determines the line ending of the input and returns that information, so that it can be used laterto_string_line_feed
has the same behavior asto_string
, except that it takes line feed information as an additional input, used to determine how to pre and post-process the input when Mr. Mime is the backendacopy_email
now uses these line feed-enhanced functions in place of the oldto_string
andof_string
Lib.Convert
has two implementations of each of these parsing and serializing functions, one for theMrmime_converter
module and one for theOcamlnet_converter
module.