Don't skip message/* attachments when opening a draft. Restore check as it was before [fa57c988]

pull/60/head
Thomas Bruederli 12 years ago
parent 4090870623
commit bd1e16f343

@ -982,7 +982,7 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml)
foreach ((array)$message->mime_parts as $pid => $part) foreach ((array)$message->mime_parts as $pid => $part)
{ {
if ($part->disposition == 'attachment' || ($part->disposition == 'inline' && $bodyIsHtml) || $part->filename) { if ($part->disposition == 'attachment' || ($part->disposition == 'inline' && $bodyIsHtml) || $part->filename) {
if ($part->ctype_primary == 'message' || $part->ctype_primary == 'multipart') { if (($part->ctype_primary == 'message' && $bodyIsHtml) || $part->ctype_primary == 'multipart') {
continue; continue;
} }
if ($part->mimetype == 'application/ms-tnef') { if ($part->mimetype == 'application/ms-tnef') {

Loading…
Cancel
Save