| | |
| | | <?php |
| | | |
| | | /** |
| | | /* |
| | | +-----------------------------------------------------------------------+ |
| | | | program/include/rcube_message_header.php | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | | | Copyright (C) 2011-2012, Kolab Systems AG | |
| | |
| | | | | |
| | | | PURPOSE: | |
| | | | E-mail message headers representation | |
| | | | | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Aleksander Machniak <alec@alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | |
| | | 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', |
| | |
| | | $value = $this->others[$name]; |
| | | } |
| | | |
| | | return $decode ? rcube_mime::decode_header($value, $this->charset) : $value; |
| | | if ($decode) { |
| | | 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; |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * Class for sorting an array of rcube_message_header objects in a predetermined order. |
| | | * |
| | | * @package Mail |
| | | * @package Framework |
| | | * @subpackage Storage |
| | | * @author Aleksander Machniak <alec@alec.pl> |
| | | */ |
| | | class rcube_message_header_sorter |