alecpl
2011-12-14 18ca0b6efc75ff48817572cb784190b71f9ab296
- Skip inline images (fixes issue where images used in HTML body were displayed below the body once again)


1 files modified
5 ■■■■■ changed files
program/steps/mail/func.inc 5 ●●●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -1070,6 +1070,11 @@
  // list images after mail body
  if ($CONFIG['inline_images'] && !empty($MESSAGE->attachments)) {
    foreach ($MESSAGE->attachments as $attach_prop) {
      // skip inline images
      if ($attach_prop->content_id && $attach_prop->disposition == 'inline') {
        continue;
      }
      // Content-Type: image/*...
      if (preg_match('/^image\//i', $attach_prop->mimetype) ||
        // ...or known file extension: many clients are using application/octet-stream