Fix regression where messages with no text part (but e.g. application/zip) were not displayed as an attachment (#5357)

pull/5361/head
Aleksander Machniak 8 years ago
parent 3d9e170d8b
commit 9a2264ba0e

@ -905,11 +905,7 @@ class rcube_message
} }
} }
// message is a single part non-text // message is a single part non-text
else if ($structure->filename) { else if ($structure->filename || preg_match('/^application\//i', $mimetype)) {
$this->add_part($structure, $attachment);
}
// message is a single part non-text (without filename)
else if (preg_match('/application\//i', $mimetype)) {
$this->add_part($structure, 'attachment'); $this->add_part($structure, 'attachment');
} }
} }

Loading…
Cancel
Save