roundcubemail/program/lib/Roundcube/rcube_imap_generic.php
public function getStructure($mailbox, $id, $is_uid = false)
    {
        $result = $this->fetch($mailbox, $id, $is_uid, array('BODYSTRUCTURE'));

        if (is_array($result)) {
            $result = array_shift($result);
            return $result->bodystructure;
        }

        return false;
    }
public function getStructure($mailbox, $id, $is_uid = false)
    {
        $result = $this->fetch($mailbox, $id, $is_uid, array('BODYSTRUCTURE'));

        if (is_array($result)) {
            $result = array_shift($result);
            return $result->bodystructure;
        }

        return false;
    }
public function getStructure ( $ mailbox , $ id , $ is_uid = false ) { $ result = $ this -> fetch ( $ mailbox , $ id , $ is_uid , array ( 'BODYSTRUCTURE' ) ) ; if ( is_array ( $ result ) ) { $ result = array_shift ( $ result ) ; return $ result -> bodystructure ; } return false ; }
Returns BODYSTRUCTURE for the specified message.

@param string $mailbox Folder name
@param int    $id      Message sequence number or UID
@param bool   $is_uid  True if $id is an UID

@return array/bool Body structure array or False on error.
@since 0.6
Returns BODYSTRUCTURE for the specified message .