Reset $part_orig_mimetype variable in for-loop. This avoids attachments along with message/rfc822 parts being listed twice

pull/156/head
Thomas Bruederli 11 years ago
parent 2af3748596
commit 596301c10b

@ -529,8 +529,9 @@ class rcube_message
$part_mimetype = $mail_part->real_mimetype; $part_mimetype = $mail_part->real_mimetype;
list($primary_type, $secondary_type) = explode('/', $part_mimetype); list($primary_type, $secondary_type) = explode('/', $part_mimetype);
} }
else else {
$part_mimetype = $mail_part->mimetype; $part_mimetype = $part_orig_mimetype = $mail_part->mimetype;
}
// multipart/alternative // multipart/alternative
if ($primary_type == 'multipart') { if ($primary_type == 'multipart') {

Loading…
Cancel
Save