public function getMessage($id, $decode = IncomingMessage::DECODE)
    {
        $this->checkMessageId($id);
        $this->incomingMessage = new IncomingMessage($this->imap, $id, $decode);
        return $this->incomingMessage;
    }
public function getMessage($id, $decode = IncomingMessage::DECODE)
    {
        $this->checkMessageId($id);
        $this->incomingMessage = new IncomingMessage($this->imap, $id, $decode);
        return $this->incomingMessage;
    }
public function getMessage ( $ id , $ decode = IncomingMessage :: DECODE ) { $ this -> checkMessageId ( $ id ) ; $ this -> incomingMessage = new IncomingMessage ( $ this -> imap , $ id , $ decode ) ; return $ this -> incomingMessage ; }
Returns one email by given id

Examples:

1. Structure
```php
$imap = new ImapClient();
$imap->getMessage(5);
```

You can see all structure that
```php
var_dump($imap->incomingMessage)
```

But use like this
```php
$imap->incomingMessage->header->subject
$imap->incomingMessage->header->from
$imap->incomingMessage->header->to
# cc or bcc
$imap->incomingMessage->header->details->cc
$imap->incomingMessage->header->details->bcc
# and other ...
var_dump($imap->incomingMessage->header)
```

Next Text or Html body
```php
$imap->incomingMessage->message->html
$imap->incomingMessage->message->plain
# below is array
$imap->incomingMessage->message->info
```

Array attachments
```php
$imap->incomingMessage->attachment
```
Attachment have structure and body
```php
$imap->incomingMessage->attachment[0]
$imap->incomingMessage->attachment[0]->structure
$imap->incomingMessage->attachment[0]->body
```

Count section
```php
$imap->incomingMessage->section
```

And structure all message
```php
$imap->incomingMessage->structure
```

2. Save all attachments
```php
$imap->getMessage(5);
$imap->saveAttachments();
```
@see IncomingMessage
@param integer $id
@param string $decode IncomingMessage::DECODE or IncomingMessage::NOT_DECODE
@return object IncomingMessage
Returns one email by given id