Open golddranks opened 7 years ago
Do you accept pull requests?
I don't have much time to work on this, but I do accept pull requests.
There ya go! https://github.com/niax/rust-email/pull/38
Btw. is Rc
a public type in the APIs of this crate? I couldn't find anything exposed after checking the docs a bit.
Rc
is only used to maintain two references to a Header
within the HeaderMap
such that we can keep the ordering of headers in one structure, and index the headers by name in a different one.
Okay, in that case this isn't a breaking change, since it makes the types strictly more flexible.
Rc
prevents the datatypes defined in this crate from beingSend
. This affects some downstream crates that use the data types in this crate for implementing email-related stuff. Sometimes these things need to be send between threads (for example, when you have one mailer thread and you prepare emails in many threads and send them to the mailer thread), so this hinders the usability of the types defined here.