| | |
| | | |
| | | /* |
| | | +-----------------------------------------------------------------------+ |
| | | | program/include/rcube_message.php | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2008-2010, The Roundcube Dev Team | |
| | | | | |
| | |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | |
| | | /** |
| | | * Logical representation of a mail message with all its data |
| | |
| | | private function parse_structure($structure, $recursive = false) |
| | | { |
| | | // real content-type of message/rfc822 part |
| | | if ($structure->mimetype == 'message/rfc822' && $structure->real_mimetype) |
| | | if ($structure->mimetype == 'message/rfc822' && $structure->real_mimetype) { |
| | | $mimetype = $structure->real_mimetype; |
| | | |
| | | // parse headers from message/rfc822 part |
| | | if (!isset($structure->headers['subject'])) { |
| | | list($headers, $dump) = explode("\r\n\r\n", $this->get_part_content($structure->mime_id, null, true, 4096)); |
| | | $structure->headers = rcube_mime::parse_headers($headers); |
| | | } |
| | | } |
| | | else |
| | | $mimetype = $structure->mimetype; |
| | | |