Commit dc7114bd authored by Andreas Buff's avatar Andreas Buff
Browse files

IOS-2896 fixes: filename missing in MIME for inlined attachments

parent 239dcd61
......@@ -109,6 +109,9 @@ extension CWIMAPMessage {
if let fileName = attachmentObj.filename {
if let cid = fileName.extractCid() {
part.setContentID("<\(cid)>")
let placeholderFilename = NSLocalizedString("image",
comment: "Placeholder filename used for inlined images (as the real filename is lost due to the Engine message having only one field for content-id, filename and name)")
part.setFilename(placeholderFilename)
} else {
let theFilePart = fileName.extractFileName() ?? fileName
part.setFilename(theFilePart)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment