Changeset 70318e5 in github
- Timestamp:
- Apr 1, 2010 9:42:39 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- cd96fd6
- Parents:
- 1820932
- Location:
- program
- Files:
-
- 1 added
- 1 deleted
- 1 edited
-
include/rcube_imap.php (modified) (4 diffs)
-
include/rcube_mime_struct.php (added)
-
lib/mime.inc (deleted)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.php
r6f31b35 r70318e5 20 20 21 21 */ 22 23 24 require_once('lib/mime.inc');25 require_once('lib/tnef_decoder.inc');26 22 27 23 … … 1615 1611 } 1616 1612 1617 if (!$structure_str) 1613 if (!$structure_str) { 1618 1614 $structure_str = $this->conn->fetchStructureString($this->mailbox, $uid, true); 1619 $structure = iml_GetRawStructureArray($structure_str); 1615 } 1616 $structure = rcube_mime_struct::parseStructure($structure_str); 1620 1617 $struct = false; 1621 1618 … … 1967 1964 if (!is_object($o_part)) { 1968 1965 $structure_str = $this->conn->fetchStructureString($this->mailbox, $uid, true); 1969 $structure = iml_GetRawStructureArray($structure_str);1966 $structure = new rcube_mime_struct(); 1970 1967 // error or message not found 1971 if ( empty($structure))1968 if (!$structure->loadStructure($structure_str)) { 1972 1969 return false; 1973 1974 $part_type = iml_GetPartTypeCode($structure, $part); 1970 } 1971 1975 1972 $o_part = new rcube_message_part; 1976 $o_part->ctype_primary = $part_type==0 ? 'text' : ($part_type==2 ? 'message' : 'other');1977 $o_part->encoding = strtolower(iml_GetPartEncodingString($structure,$part));1978 $o_part->charset = iml_GetPartCharset($structure,$part);1973 $o_part->ctype_primary = strtolower($structure->getPartType($part)); 1974 $o_part->encoding = strtolower($structure->getPartEncoding($part)); 1975 $o_part->charset = $structure->getPartCharset($part); 1979 1976 } 1980 1977 … … 3332 3329 $part->body = $this->get_message_part($uid, $part->mime_id, $part); 3333 3330 3331 require_once('lib/tnef_decoder.inc'); 3332 3334 3333 $pid = 0; 3335 3334 $tnef_parts = array();
Note: See TracChangeset
for help on using the changeset viewer.
