| | |
| | | <?php |
| | | |
| | | /** |
| | | /* |
| | | +-----------------------------------------------------------------------+ |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | |
| | | public $mdn_to; |
| | | |
| | | /** |
| | | * IMAP folder this message is stored in |
| | | * |
| | | * @var string |
| | | */ |
| | | public $folder; |
| | | |
| | | /** |
| | | * Other message headers |
| | | * |
| | | * @var array |
| | |
| | | 'reply-to' => 'replyto', |
| | | 'cc' => 'cc', |
| | | 'bcc' => 'bcc', |
| | | 'mbox' => 'folder', |
| | | 'folder' => 'folder', |
| | | 'content-transfer-encoding' => 'encoding', |
| | | 'in-reply-to' => 'in_reply_to', |
| | | 'content-type' => 'ctype', |
| | |
| | | } |
| | | |
| | | if ($decode) { |
| | | $value = rcube_mime::decode_header($value, $this->charset); |
| | | $value = rcube_charset::clean($value); |
| | | if (is_array($value)) { |
| | | foreach ($value as $key => $val) { |
| | | $val = rcube_mime::decode_header($val, $this->charset); |
| | | $value[$key] = rcube_charset::clean($val); |
| | | } |
| | | } |
| | | else { |
| | | $value = rcube_mime::decode_header($value, $this->charset); |
| | | $value = rcube_charset::clean($value); |
| | | } |
| | | } |
| | | |
| | | return $value; |