diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-10-18 12:14:02 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-10-18 12:14:02 +0200 |
commit | 9f0ca2dca669a3f379d8582f128b7cca7056a921 (patch) | |
tree | a425c936d4d6fb5ffb27e5dde5bd468437238b3a /program/include/rcube_message.php | |
parent | 7ea292410644af4b6eaa772a8f71855783ade0ae (diff) | |
parent | 22c67d0ec28f4c9488d26aa35151392a18c74c45 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
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 7bf95d1c5..4e1b5a0c2 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -371,9 +371,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') |