Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9 from robocoder/patch-7
Browse files Browse the repository at this point in the history
handle case where message body is not multi-part
  • Loading branch information
hippich committed Mar 31, 2012
2 parents 621db91 + 0f63a3b commit 3b78da5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class.phpmailer-bmh.php
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ function processBounce($pos,$type,$totalFetched) {
$structure = imap_fetchstructure($this->_mailbox_link,$pos);
switch ($structure->type) {
case 0: // Content-type = text
$body = imap_fetchbody($this->_mailbox_link,$pos,"1");
$result = bmhBodyRules($body,$structure,$this->debug_body_rule);
break;
case 1: // Content-type = multipart
$body = imap_fetchbody($this->_mailbox_link,$pos,"1");
// Detect encoding and decode - only base64
Expand Down

0 comments on commit 3b78da5

Please sign in to comment.