From d93019125cca783e8acfaa68467024375321e55f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 28 Oct 2014 07:20:00 -0400 Subject: Allways call rcube_imap::set_folder() before rcube_imap::get_message_part() --- program/lib/Roundcube/rcube_message.php | 1 + 1 file changed, 1 insertion(+) (limited to 'program/lib') diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index d089713e5..3644d6b8e 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -222,6 +222,7 @@ class rcube_message // 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); -- cgit v1.2.3