@@ 540-544 (lines=5) @@ | ||
537 | $dsn_msg = imap_fetchbody($this->_mailbox_link, $pos, '1'); |
|
538 | $dsn_msg_structure = imap_bodystruct($this->_mailbox_link, $pos, '1'); |
|
539 | ||
540 | if (4 == $dsn_msg_structure->encoding) { |
|
541 | $dsn_msg = quoted_printable_decode($dsn_msg); |
|
542 | } elseif (3 == $dsn_msg_structure->encoding) { |
|
543 | $dsn_msg = base64_decode($dsn_msg, true); |
|
544 | } |
|
545 | ||
546 | // second part of DSN (Delivery Status Notification), delivery-status |
|
547 | $dsn_report = imap_fetchbody($this->_mailbox_link, $pos, '2'); |
|
@@ 567-571 (lines=5) @@ | ||
564 | break; |
|
565 | case 2: // Content-type = message |
|
566 | $body = imap_body($this->_mailbox_link, $pos); |
|
567 | if (4 == $structure->encoding) { |
|
568 | $body = quoted_printable_decode($body); |
|
569 | } elseif (3 == $structure->encoding) { |
|
570 | $body = base64_decode($body, true); |
|
571 | } |
|
572 | $body = mb_substr($body, 0, 1000); |
|
573 | $result = bmhBodyRules($body, $structure, $this->debug_body_rule); |
|
574 | break; |