Closed mikedilger closed 7 years ago
BTW: the ORDER of headers matters, so the above is not quite correct.
I think the rfc5322::Message takes care of all of this. We will write functions that make it easier for users to get and set various types of headers.
I tried doing trait objects. It did not turn out well. The trait wants a "stream_out" function which must be type parameterized. However, trait objects in rust must not have such functions for object safety reasons.
Currently the 'dev' branch code uses fields, one per header type, but this is tedious.
I'm leaning towards enums...