diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-17 10:35:10 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-17 10:36:45 +0200 |
commit | 070b8e9f7144d3f517c68356eacdf3e96484be06 (patch) | |
tree | ebde0b0c63fe415581c1ffb14a66a4a75ddcbf07 /program/include/rcube_message.php | |
parent | 07239b65d64f3a98bee9b29cc1553530e4be9187 (diff) |
Fix the fix for empty text parts handling (#1488757)
Diffstat (limited to 'program/include/rcube_message.php')
-rw-r--r-- | program/include/rcube_message.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index f5d253dc6..60e79cb97 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -364,9 +364,10 @@ class rcube_message foreach ($structure->parts as $p => $sub_part) { $sub_mimetype = $sub_part->mimetype; - // skip empty parts - if (!$sub_part->size) + // skip empty text parts + if (!$sub_part->size && preg_match('#^text/(plain|html|enriched)$#', $sub_mimetype)) { continue; + } // check if sub part is if ($sub_mimetype == 'text/plain') |