Aleksander Machniak
2012-11-12 2a5afe1cdeb177642d10567687df460fd220802d
BINARY extension can't be used with $formatting=true on binary content
2 files modified
5 ■■■■■ changed files
program/include/rcube_imap.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_imap_generic.php 3 ●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -2074,7 +2074,7 @@
        if ($o_part && $o_part->size) {
            $body = $this->conn->handlePartBody($this->folder, $uid, true,
                $part ? $part : 'TEXT', $o_part->encoding, $print, $fp);
                $part ? $part : 'TEXT', $o_part->encoding, $print, $fp, $o_part->ctype_primary == 'text');
        }
        if ($fp || $print) {
program/include/rcube_imap_generic.php
@@ -2379,7 +2379,7 @@
        return $this->handlePartBody($mailbox, $id, $is_uid, $part);
    }
    function handlePartBody($mailbox, $id, $is_uid=false, $part='', $encoding=NULL, $print=NULL, $file=NULL, $formatted=true)
    function handlePartBody($mailbox, $id, $is_uid=false, $part='', $encoding=NULL, $print=NULL, $file=NULL, $formatted=false)
    {
        if (!$this->select($mailbox)) {
            return false;
@@ -2417,6 +2417,7 @@
        }
        if ($binary) {
            // WARNING: Use $formatting argument with care, this may break binary data stream
            $mode = -1;
        }