Skip to content

Commit 156f964

Browse files
committed
build: remove encoded-words dependency
mail-builder is doing its own encoding.
1 parent ef008d4 commit 156f964

File tree

3 files changed

+3
-35
lines changed

3 files changed

+3
-35
lines changed

Cargo.lock

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ brotli = { version = "7", default-features=false, features = ["std"] }
5050
bytes = "1"
5151
chrono = { workspace = true, features = ["alloc", "clock", "std"] }
5252
data-encoding = "2.7.0"
53-
encoded-words = "0.2"
5453
escaper = "0.1"
5554
fast-socks5 = "0.10"
5655
fd-lock = "4"

src/mimefactory.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,11 @@ impl MimeFactory {
710710

711711
if let Loaded::Message { chat, .. } = &self.loaded {
712712
if chat.typ == Chattype::Broadcast {
713-
let encoded_chat_name = encode_words(&chat.name);
714713
headers.push((
715714
"List-ID",
716-
mail_builder::headers::raw::Raw::new(format!(
717-
"{encoded_chat_name} <{}>",
718-
chat.grpid
715+
mail_builder::headers::text::Text::new(format!(
716+
"{} <{}>",
717+
chat.name, chat.grpid
719718
))
720719
.into(),
721720
));
@@ -1751,13 +1750,5 @@ fn render_rfc724_mid(rfc724_mid: &str) -> String {
17511750
}
17521751
}
17531752

1754-
/* ******************************************************************************
1755-
* Encode/decode header words, RFC 2047
1756-
******************************************************************************/
1757-
1758-
fn encode_words(word: &str) -> String {
1759-
encoded_words::encode(word, None, encoded_words::EncodingFlag::Shortest, None)
1760-
}
1761-
17621753
#[cfg(test)]
17631754
mod mimefactory_tests;

0 commit comments

Comments
 (0)