thomascube
2011-10-27 335b042b985da68b5934b10b843400398964168b
Fix inline display of image attachments

2 files modified
9 ■■■■ changed files
program/include/rcube_message.php 1 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 8 ●●●● patch | view | raw | blame | history
program/include/rcube_message.php
@@ -48,7 +48,6 @@
    public $uid = null;
    public $headers;
    public $structure;
    public $parts = array();
    public $mime_parts = array();
    public $attachments = array();
program/steps/mail/func.inc
@@ -1037,14 +1037,8 @@
      rcmail_plain_body(Q($MESSAGE->body, 'strict', false))));
    }
  $ctype_primary = strtolower($MESSAGE->structure->ctype_primary);
  $ctype_secondary = strtolower($MESSAGE->structure->ctype_secondary);
  // list images after mail body
  if ($CONFIG['inline_images']
      && $ctype_primary == 'multipart'
      && !empty($MESSAGE->attachments))
    {
  if ($CONFIG['inline_images'] && !empty($MESSAGE->attachments)) {
    foreach ($MESSAGE->attachments as $attach_prop) {
      // Content-Type: image/*...
      if (preg_match('/^image\//i', $attach_prop->mimetype) ||