diff options
Diffstat (limited to 'program/include/rcube_message_header.php')
-rw-r--r-- | program/include/rcube_message_header.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/program/include/rcube_message_header.php b/program/include/rcube_message_header.php index f2f91674e..378fb98c9 100644 --- a/program/include/rcube_message_header.php +++ b/program/include/rcube_message_header.php @@ -205,15 +205,18 @@ class rcube_message_header /** * Returns header value */ - public function get($name) + public function get($name, $decode = true) { $name = strtolower($name); if (isset($this->obj_headers[$name])) { - return $this->{$this->obj_headers[$name]}; + $value = $this->{$this->obj_headers[$name]}; + } + else { + $value = $this->others[$name]; } - return $this->others[$name]; + return $decode ? rcube_mime::decode_header($value, $this->charset) : $value; } /** |