don't add newlines in encoded words
parent
e0df6ce22d
commit
5a9ee50bbc
|
@ -8,7 +8,7 @@ pub fn encode_header(value: &str) -> String {
|
||||||
ret.push_str(word);
|
ret.push_str(word);
|
||||||
} else {
|
} else {
|
||||||
ret.push_str(
|
ret.push_str(
|
||||||
format!("=?UTF-8?B?{}?=", BASE64_MIME.encode(word.as_bytes()).trim()).as_str(),
|
format!("=?UTF-8?B?{}?=", BASE64_MIME.encode(word.trim().as_bytes())).trim(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
ret.push(' ');
|
ret.push(' ');
|
||||||
|
|
Loading…
Reference in New Issue