don't add newlines in encoded words

embed
Manos Pitsidianakis 2019-06-10 16:02:07 +03:00
parent e0df6ce22d
commit 5a9ee50bbc
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ pub fn encode_header(value: &str) -> String {
ret.push_str(word);
} else {
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(' ');