mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
use correct key when sending filenames
adding an asterisk to the filename key REQUIRES two apostrope-delimiters in the value as of charset'lang'name, see rfc2231 as we do use the value this way, we MUST not add the asterisk. things worked correctly in the past as consuming MUAs are pretty graceful. i assume the error comes from the c to rust conversion - core-c did add the asterisk, however also did the apostrope-encoding. core-rust leaves the asterisk but changes encoding.
This commit is contained in:
@@ -1180,7 +1180,7 @@ async fn build_body_file(
|
||||
// run into other problems ...
|
||||
let cd_value = if needs_encoding(&filename_to_send) {
|
||||
format!(
|
||||
"attachment; filename*=\"{}\"",
|
||||
"attachment; filename=\"{}\"",
|
||||
encode_words(&filename_to_send)
|
||||
)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user