Aleksander Machniak
2014-10-28 d93019125cca783e8acfaa68467024375321e55f
Allways call rcube_imap::set_folder() before rcube_imap::get_message_part()
1 files modified
1 ■■■■ changed files
program/lib/Roundcube/rcube_message.php 1 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_message.php
@@ -222,6 +222,7 @@
        // part body not fetched yet... save in memory if it's small enough
        if ($part->body === null && is_numeric($mime_id) && $part->size < self::BODY_MAX_SIZE) {
            $this->storage->set_folder($this->folder);
            // Warning: body here should be always unformatted
            $part->body = $this->storage->get_message_part($this->uid, $mime_id, $part,
                null, null, true, 0, false);