public function parseBody() {
        $this->client->openFolder($this->folder_path);
        $this->structure = imap_fetchstructure($this->client->getConnection(), $this->uid, IMAP::FT_UID);

        if(property_exists($this->structure, 'parts')){
            $parts = $this->structure->parts;

            foreach ($parts as $part)  {
                foreach ($part->parameters as $parameter)  {
                    if($parameter->attribute == "charset")  {
                        $encoding = $parameter->value;

                        $encoding = preg_replace('/Content-Transfer-Encoding/', '', $encoding);
                        $encoding = preg_replace('/iso-8859-8-i/', 'iso-8859-8', $encoding);

                        $parameter->value = $encoding;
                    }
                }
            }
        }

        $this->fetchStructure($this->structure);

        return $this;
    }