From b47ce4c2e606107ca58a922c2e09e6bbd5d54655 Mon Sep 17 00:00:00 2001 From: Andy Brandt Date: Mon, 12 Jun 2023 08:29:15 -0500 Subject: [PATCH] use usize::MAX for line wrap length, since lettre does it for us (#3034) fixes #2921 --- crates/utils/src/email.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.44.1