Update Body.php
Fix for plain text messages
This commit is contained in:
parent
5cdb441bf0
commit
a1ca6a97de
|
@ -84,6 +84,7 @@ class Body
|
||||||
$part = $structure->parts[1];
|
$part = $structure->parts[1];
|
||||||
$this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option);
|
$this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option);
|
||||||
|
|
||||||
|
|
||||||
$this->encoding = $part->encoding;
|
$this->encoding = $part->encoding;
|
||||||
|
|
||||||
if($part->encoding == 3) {
|
if($part->encoding == 3) {
|
||||||
|
@ -94,6 +95,10 @@ class Body
|
||||||
$this->message = imap_qprint($this->message);
|
$this->message = imap_qprint($this->message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option);
|
||||||
|
$this->message = imap_body($this->connection->getStream(),$this->message_number , $option);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->message;
|
return $this->message;
|
||||||
}
|
}
|
||||||
|
@ -107,4 +112,4 @@ class Body
|
||||||
{
|
{
|
||||||
return $this->encoding;
|
return $this->encoding;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue