be more graceful when the apostrophed-encoding is used erroneous - either by other MUA or by Delta Chat up to core1.50

This commit is contained in:
B. Petersen
2020-12-06 01:40:41 +01:00
committed by link2xt
parent 7b291c1416
commit f774665921

View File

@@ -1328,8 +1328,11 @@ fn get_attachment_filename(
}
}
} else {
warn!(context, "apostroped encoding invalid");
None
warn!(context, "apostroped encoding invalid: {}", name);
// be graceful and just use the original name.
// some MUA, including Delta Chat up to core1.50,
// use `filename*` mistakenly for simple encoded-words without following rfc2231
Some(name)
}
}
}