thomascube
2008-06-05 0a99895ead5fec3e48719761a142a1c0a25d244c
Fix fallback if no message strucutre is provided by the imap server

2 files modified
7 ■■■■ changed files
program/include/rcube_imap.php 5 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 2 ●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -1248,7 +1248,10 @@
   */
  function &get_body($uid, $part=1)
    {
    return $this->get_message_part($uid, $part);
    $headers = $this->get_headers($uid);
    return rcube_charset_convert(
      $this->mime_decode($this->get_message_part($uid, $part), 'quoted-printable'),
      $headers->charset ? $headers->charset : $this->default_charset);
    }
program/steps/mail/func.inc
@@ -728,7 +728,7 @@
      }
    }
  else
    $out .= $MESSAGE->body;
    $out .= html::div('message-part', html::div('pre', $MESSAGE->body));
  $ctype_primary = strtolower($MESSAGE->structure->ctype_primary);