From 99aeef373ce9d6621149fb731b9f3ff557a5500b Mon Sep 17 00:00:00 2001 From: thomasb Date: Sat, 17 May 2008 17:46:43 +0000 Subject: New class rcube_message representing a mail message; changed global $MESSAGE from array to object git-svn-id: https://svn.roundcube.net/trunk@1400 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 30 ---------------------------- 1 file changed, 30 deletions(-) (limited to 'roundcubemail/program/include/rcube_imap.php') diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 1bf59b8dd..fa2845d5b 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -1179,36 +1179,6 @@ class rcube_imap } - /** - * Return a flat array with references to all parts, indexed by part numbers - * - * @param object rcube_message_part Message body structure - * @return Array with part number -> object pairs - */ - function get_mime_numbers(&$structure) - { - $a_parts = array(); - $this->_get_part_numbers($structure, $a_parts); - return $a_parts; - } - - - /** - * Helper method for recursive calls - * - * @access private - */ - function _get_part_numbers(&$part, &$a_parts) - { - if ($part->mime_id) - $a_parts[$part->mime_id] = &$part; - - if (is_array($part->parts)) - for ($i=0; $iparts); $i++) - $this->_get_part_numbers($part->parts[$i], $a_parts); - } - - /** * Fetch message body of a specific message from the server * -- cgit v1.2.3