- Fix message/rfc822 attachments containing only attachments are not parsed properly (#1486743)

release-0.6
alecpl 15 years ago
parent 7520f0781c
commit c1439f925d

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
- Fix message/rfc822 attachments containing only attachments are not parsed properly (#1486743)
- Fix %00 character in winmail.dat attachments names (#1486738)
- Fix handling errors of folder deletion (#1486705)
- Parse untagged CAPABILITY response for LOGIN command (#1486742)

@ -401,7 +401,6 @@ class rcube_message
$this->attachments[] = $tnef_part;
}
}
// part is a file/attachment
else if (preg_match('/^(inline|attach)/', $mail_part->disposition) ||
$mail_part->headers['content-id'] || (empty($mail_part->disposition) && $mail_part->filename)) {
@ -421,6 +420,10 @@ class rcube_message
$this->inline_parts[] = $mail_part;
}
// attachment encapsulated within message/rfc822 part needs further decoding (#1486743)
else if ($part_orig_mimetype == 'message/rfc822') {
$this->parse_structure($mail_part, true);
}
// is a regular attachment
else if (preg_match('!^[a-z0-9-.+]+/[a-z0-9-.+]+$!i', $part_mimetype)) {
if (!$mail_part->filename)

Loading…
Cancel
Save