src/IMAP/Message.php
protected function fetchAttachment($structure, $partNumber) {

        $oAttachment = new Attachment($this, $structure, $partNumber);

        if ($oAttachment->getName() !== null) {
            if ($oAttachment->getId() !== null) {
                $this->attachments->put($oAttachment->getId(), $oAttachment);
            } else {
                $this->attachments->push($oAttachment);
            }
        }
    }
protected function fetchAttachment($structure, $partNumber) {

        $oAttachment = new Attachment($this, $structure, $partNumber);

        if ($oAttachment->getName() !== null) {
            if ($oAttachment->getId() !== null) {
                $this->attachments->put($oAttachment->getId(), $oAttachment);
            } else {
                $this->attachments->push($oAttachment);
            }
        }
    }
protected function fetchAttachment ( $ structure , $ partNumber ) { $ oAttachment = new Attachment ( $ this , $ structure , $ partNumber ) ; if ( $ oAttachment -> getName ( ) !== null ) { if ( $ oAttachment -> getId ( ) !== null ) { $ this -> attachments -> put ( $ oAttachment -> getId ( ) , $ oAttachment ) ; } else { $ this -> attachments -> push ( $ oAttachment ) ; } } }
Fetch the Message attachment

@param object $structure
@param mixed  $partNumber

@throws Exceptions\ConnectionFailedException
Fetch the Message attachment