Thomas Bruederli
2012-10-19 5b3a0a2797c8939b397f37dbb9cbf05a50622895
program/include/rcube_message.php
@@ -371,6 +371,11 @@
            foreach ($structure->parts as $p => $sub_part) {
                $sub_mimetype = $sub_part->mimetype;
                // 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')
                    $plain_part = $p;