@@ 572-576 (lines=5) @@ | ||
569 | $dsnMsg = \imap_fetchbody($this->mailboxLink, $pos, '1'); |
|
570 | $dsnMsgStructure = \imap_bodystruct($this->mailboxLink, $pos, '1'); |
|
571 | ||
572 | if ($dsnMsgStructure->encoding == 4) { |
|
573 | $dsnMsg = \quoted_printable_decode($dsnMsg); |
|
574 | } elseif ($dsnMsgStructure->encoding == 3) { |
|
575 | $dsnMsg = \base64_decode($dsnMsg, true); |
|
576 | } |
|
577 | ||
578 | // second part of DSN (Delivery Status Notification), delivery-status |
|
579 | $dsnReport = \imap_fetchbody($this->mailboxLink, $pos, '2'); |
|
@@ 618-622 (lines=5) @@ | ||
615 | case 2: // Content-type = message |
|
616 | $body = \imap_body($this->mailboxLink, $pos); |
|
617 | ||
618 | if ($structure->encoding == 4) { |
|
619 | $body = \quoted_printable_decode($body); |
|
620 | } elseif ($structure->encoding == 3) { |
|
621 | $body = \base64_decode($body, true); |
|
622 | } |
|
623 | ||
624 | $body = \substr($body, 0, 1000); |
|
625 | $result = bmhBodyRules($body, $structure, $this->debugBodyRule); |