Skip to content

Commit 4d7062e

Browse files
authored
Merge pull request #16 from radicalloop/patch-1
fixing issue text attachment overwrite mail body
2 parents b9f50bc + ce3e2aa commit 4d7062e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private function parseBody() {
314314
* @param mixed $partNumber
315315
*/
316316
private function fetchStructure($structure, $partNumber = null) {
317-
if ($structure->type == self::TYPE_TEXT) {
317+
if ($structure->type == self::TYPE_TEXT && $structure->ifdisposition == 0) {
318318
if ($structure->subtype == "PLAIN") {
319319
if (!$partNumber) {
320320
$partNumber = 1;

0 commit comments

Comments
 (0)