mail-send
mail-send copied to clipboard
Refactor message, send_msg(), sign()
- New
send_msg(&mut self, message: &Message<'x>)
to send message which was already transformed usingIntoMessage
. Now you can have ownedMessage
, so if any error occurs, you don't loose the entire message, so you can send it again. - New
sign(&mut self, signer: &DkimSigner<_>)
method onMessage
, which signs message in place, and then message can be sent using usualsend()
. - Couple
#[inline]
, because compiler does not inline by default, as far as I know, so you need to tell it which function you think may be inlined. It improves performance. - Sized traits