From: Andy Brandt Date: Mon, 12 Jun 2023 13:29:15 +0000 (-0500) Subject: use usize::MAX for line wrap length, since lettre does it for us (#3034) X-Git-Url: http://these/git/%22https:/nerdica.net/README.es.md?a=commitdiff_plain;h=b47ce4c2e606107ca58a922c2e09e6bbd5d54655;p=lemmy.git use usize::MAX for line wrap length, since lettre does it for us (#3034) fixes #2921 --- diff --git a/crates/utils/src/email.rs b/crates/utils/src/email.rs index f036c2a6..eda8309f 100644 --- a/crates/utils/src/email.rs +++ b/crates/utils/src/email.rs @@ -43,8 +43,8 @@ pub fn send_email( (email, port) }; - // the message length before wrap, 78, is somewhat arbritary but looks good to me - let plain_text = html2text::from_read(html.as_bytes(), 78); + // use usize::MAX as the line wrap length, since lettre handles the wrapping for us + let plain_text = html2text::from_read(html.as_bytes(), usize::MAX); let email = Message::builder() .from(