Webklex / php-imap

PHP-IMAP is a wrapper for common IMAP communication without the need to have the php-imap module installed / enabled. The protocol is completely integrated and therefore supports IMAP IDLE operation and the "new" oAuth authentication process as well.
https://www.php-imap.com
MIT License
314 stars 147 forks source link

Empty body #138

Closed fadedshadowx closed 3 years ago

fadedshadowx commented 3 years ago

I have message where getHTMLBody getTextBody give "null". Why? How read the body? In client I see body normally. Dump of message:


  -client: Webklex\PHPIMAP\Client^ {#1347
    +connection: Webklex\PHPIMAP\Connection\Protocols\ImapProtocol^ {#1359
      #noun: 10
      #connection_timeout: 30
      #debug: false
      +stream: stream resource {@739
        crypto: array:4 [
          "protocol" => "TLSv1.3"
          "cipher_name" => "TLS_AES_256_GCM_SHA384"
          "cipher_bits" => 256
          "cipher_version" => "TLSv1.3"
        ]
        timed_out: false
        blocked: true
        eof: false
        stream_type: "tcp_socket/ssl"
        mode: "r+"
        unread_bytes: 0
        seekable: false
        options: array:1 [
          "ssl" => array:2 [
            "verify_peer_name" => true
            "verify_peer" => true
          ]
        ]
      }
      #encryption: "ssl"
      #cert_validation: true
      #proxy: array:4 [
        "socket" => null
        "request_fulluri" => false
        "username" => null
        "password" => null
      ]
    }
    +host: "mail.mydomain.com"
    +port: "993"
    +protocol: "imap"
    +encryption: "ssl"
    +validate_cert: true
    #proxy: array:4 [
      "socket" => null
      "request_fulluri" => false
      "username" => null
      "password" => null
    ]
    +timeout: 30
    +username: "mymail@mydomain.com"
    +password: "*****"
    +authentication: null
    #active_folder: "INBOX"
    #default_message_mask: "Webklex\PHPIMAP\Support\Masks\MessageMask"
    #default_attachment_mask: "Webklex\PHPIMAP\Support\Masks\AttachmentMask"
    #default_account_config: array:10 [
      "host" => "localhost"
      "port" => 993
      "protocol" => "imap"
      "encryption" => "ssl"
      "validate_cert" => true
      "username" => ""
      "password" => ""
      "authentication" => null
      "proxy" => array:4 [
        "socket" => null
        "request_fulluri" => false
        "username" => null
        "password" => null
      ]
      "timeout" => 30
    ]
    #events: array:3 [
      "message" => array:5 [
        "new" => "Webklex\IMAP\Events\MessageNewEvent"
        "moved" => "Webklex\IMAP\Events\MessageMovedEvent"
        "copied" => "Webklex\IMAP\Events\MessageCopiedEvent"
        "deleted" => "Webklex\IMAP\Events\MessageDeletedEvent"
        "restored" => "Webklex\IMAP\Events\MessageRestoredEvent"
      ]
      "folder" => array:3 [
        "new" => "Webklex\IMAP\Events\FolderNewEvent"
        "moved" => "Webklex\IMAP\Events\FolderMovedEvent"
        "deleted" => "Webklex\IMAP\Events\FolderDeletedEvent"
      ]
      "flag" => array:2 [
        "new" => "Webklex\IMAP\Events\FlagNewEvent"
        "deleted" => "Webklex\IMAP\Events\FlagDeletedEvent"
      ]
    ]
  }
  #mask: "Webklex\PHPIMAP\Support\Masks\MessageMask"
  #config: array:12 [
    "delimiter" => "/"
    "fetch" => 1
    "sequence" => 3
    "fetch_body" => true
    "fetch_flags" => true
    "soft_fail" => false
    "message_key" => "list"
    "fetch_order" => "asc"
    "dispositions" => array:2 [
      0 => "attachment"
      1 => "inline"
    ]
    "common_folders" => array:5 [
      "root" => "INBOX"
      "junk" => "INBOX/Junk"
      "draft" => "INBOX/Drafts"
      "sent" => "INBOX/Sent"
      "trash" => "INBOX/Trash"
    ]
    "decoder" => array:2 [
      "message" => "utf-8"
      "attachment" => "utf-8"
    ]
    "open" => []
  ]
  #attributes: array:3 [
    "msgn" => 1
    "msglist" => 0
    "uid" => "117"
  ]
  #folder_path: "INBOX"
  +fetch_options: 1
  #sequence: 3
  +fetch_body: null
  +fetch_flags: null
  +header: Webklex\PHPIMAP\Header^ {#1368
    +raw: """
      Return-Path: <sendermail@gmail.com>\r\n
      Delivered-To: kontakt@mydomain.com\r\n
      Received: from mail.mydomain.com\r\n
      \tby crm.myserver.com with LMTP\r\n
      \tid 0CxQAw3voGA71yAAEA9nmQ\r\n
      \t(envelope-from <sendermail@gmail.com>)\r\n
      \tfor <kontakt@mydomain.com>; Sun, 16 May 2021 12:08:13 +0200\r\n
      Received: by mail.mydomain.com (Postfix, from userid 987)\r\n
      \tid 0C699201061; Sun, 16 May 2021 12:08:13 +0200 (CEST)\r\n
      X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on crm.myserver.com\r\n
      X-Spam-Level: ****\r\n
      X-Spam-Status: No, score=4.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,\r\n
      \tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,\r\n
      \tFREEMAIL_REPLY,HK_NAME_FM_MR_MRS,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,\r\n
      \tLOTS_OF_MONEY,MIME_HTML_ONLY,RCVD_IN_DNSWL_NONE,SPF_PASS\r\n
      \tautolearn=disabled version=3.4.2\r\n
      Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32])\r\n
      \tby mail.mydomain.com (Postfix) with ESMTPS id 9C5EF201060\r\n
      \tfor <kontakt@mydomain.com>; Sun, 16 May 2021 12:08:09 +0200 (CEST)\r\n
      Received: by mail-io1-xd32.google.com with SMTP id r4so2249916iol.6\r\n
              for <kontakt@mydomain.com>; Sun, 16 May 2021 03:08:09 -0700 (PDT)\r\n
      DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r\n
              d=gmail.com; s=20161025;\r\n
              h=to:from:date:message-id:subject:mime-version\r\n
               :content-transfer-encoding:content-disposition:precedence\r\n
               :auto-submitted;\r\n
              bh=uD0/QTo29gZ2wAfpm2UYWXlsdFaoRmvAG/7IcPijLpI=;\r\n
              b=JqjtnjirnmyjUHKkrTB0zErcvGM/r+dbcYMiB2Tq+Mkxv2YKyGfwl8AyHwtyztZesp\r\n
               mFwxi4E1+4vyQ8NVouFSPItaA9dcqmQMro/C9bI9cBae/H/8XdshKieYxTd1Q082CIXA\r\n
               TftNTsk0gE3NQUggr8Bvynrf99nHdUx43TpWSN4e8dmMyzb25qDAEmAwKEuqE302NEQx\r\n
               lQGbWBxZsdf3FJuMmnb0if6cxM5YLjKfoyRxhRFAgUdGaESKhWg/2J6FZfhHK+FnJqMN\r\n
               UMBu1G/lBGmdAV/AH+5BY438pvpFx2GLi4RjdTs2CMN12ON9hbUx/kYq06JmE1ztUyp4\r\n
               hrUw==\r\n
      X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r\n
              d=1e100.net; s=20161025;\r\n
              h=x-gm-message-state:to:from:date:message-id:subject:mime-version\r\n
               :content-transfer-encoding:content-disposition:precedence\r\n
               :auto-submitted;\r\n
              bh=uD0/QTo29gZ2wAfpm2UYWXlsdFaoRmvAG/7IcPijLpI=;\r\n
              b=AlG3Z4gllKVIDw8ZuGdVeLiOo80nGTuJlk6GFoD1+7RxoHuOnGzN+efwLb8kb5Uoaf\r\n
               A6mr3egtFTHLJgC9jXnnd9rAPV2N7d/fq4wzhlE6KMUH9skeRIFNkr9ZEPGHDsoOC1S+\r\n
               umbrsTKBuv0tvTtnoShUNuZgKTV8pXLTeyM8AUmadrsxrZ2VQNfW9UYTNc1P9PzQ6ICf\r\n
               Jev6o5WR62/ej7/MlLkzjSRvWbr3nqdpw7DbCQH74zJ/YHrOR2ZlRf2SThyMkHzhs/zh\r\n
               hi08MvgQ/VKULGwMjuLgg28NMEEAoCrg91bngk5/v6nY4nG/fmstO+ZkHwuaIjukfYNP\r\n
               LRLg==\r\n
      X-Gm-Message-State: AOAM5335mjF5LBxHW0FUwXAT7TbKxMh1vzkQRWSCz5hh9DoShm+29RlF\r\n
      \teAn4Fy4C4U004GVhH0dhHkxaHJENpmhVoKzGAgIiADVaoSBCN5yxIlj/49DjOWIz\r\n
      X-Google-Smtp-Source: ABdhPJxLfLmeuyLFZqeK1V/O/4SUHvx+QX9MI0uRUd30lbwncU89naPsSMmAYj4RTAigVl9nA14pVS/iGDr941UBbc34ZAvROTD+ueoc7wVE\r\n
      X-Received: by 2002:a02:5289:: with SMTP id d131mr10319780jab.121.1621159687842;\r\n
              Sun, 16 May 2021 03:08:07 -0700 (PDT)\r\n
      To: kontakt@mydomain.com\r\n
      From: "Mrs Maria Elisabeth Schaeffler" <sendermail@gmail.com>\r\n
      Date: Sun, 16 May 2021 03:08:07 -0700\r\n
      Message-ID: <CAGxuLio9EZg0-z98J8LbfD04eBQ1tj4d1=aLfvtY0E6xnGf2uQ@mail.gmail.com>\r\n
      Subject: Darlehen Angebot gelten jetzt Re: [#EEHRQWL4JF] darowizna\r\n
      MIME-Version: 1.0\r\n
      Content-Type: text/html; charset=UTF-8\r\n
      Content-Transfer-Encoding: base64\r\n
      Content-Disposition: inline\r\n
      Precedence: bulk\r\n
      X-Autoreply: yes\r\n
      Auto-Submitted: auto-replied\r\n
      \r\n
      """
    #attributes: array:37 [
      "from" => Webklex\PHPIMAP\Attribute^ {#1375
        #name: "from"
        #values: array:1 [
          0 => Webklex\PHPIMAP\Address^ {#1376
            +personal: "Mrs Maria Elisabeth Schaeffler"
            +mailbox: "sendermail"
            +host: "gmail.com"
            +mail: "sendermail@gmail.com"
            +full: "Mrs Maria Elisabeth Schaeffler <sendermail@gmail.com>"
          }
        ]
      }
      "to" => Webklex\PHPIMAP\Attribute^ {#1378
        #name: "to"
        #values: array:1 [
          0 => Webklex\PHPIMAP\Address^ {#1377
            +personal: false
            +mailbox: "kontakt"
            +host: "mydomain.com"
            +mail: "kontakt@mydomain.com"
            +full: "kontakt@mydomain.com"
          }
        ]
      }
      "reply_to" => Webklex\PHPIMAP\Attribute^ {#1379
        #name: "reply_to"
        #values: array:1 [
          0 => Webklex\PHPIMAP\Address^ {#1380
            +personal: "Mrs Maria Elisabeth Schaeffler"
            +mailbox: "sendermail"
            +host: "gmail.com"
            +mail: "sendermail@gmail.com"
            +full: "Mrs Maria Elisabeth Schaeffler <sendermail@gmail.com>"
          }
        ]
      }
      "sender" => Webklex\PHPIMAP\Attribute^ {#1381
        #name: "sender"
        #values: array:1 [
          0 => Webklex\PHPIMAP\Address^ {#1382
            +personal: "Mrs Maria Elisabeth Schaeffler"
            +mailbox: "sendermail"
            +host: "gmail.com"
            +mail: "sendermail@gmail.com"
            +full: "Mrs Maria Elisabeth Schaeffler <sendermail@gmail.com>"
          }
        ]
      }
      "subject" => Webklex\PHPIMAP\Attribute^ {#1383
        #name: "subject"
        #values: array:1 [
          0 => "Darlehen Angebot gelten jetzt Re: [#EEHRQWL4JF] darowizna"
        ]
      }
      "message_id" => Webklex\PHPIMAP\Attribute^ {#1384
        #name: "message_id"
        #values: array:1 [
          0 => "CAGxuLio9EZg0-z98J8LbfD04eBQ1tj4d1=aLfvtY0E6xnGf2uQ@mail.gmail.com"
        ]
      }
      "date" => Webklex\PHPIMAP\Attribute^ {#1386
        #name: "date"
        #values: array:1 [
          0 => Carbon\Carbon @1621159687^ {#1385
            #constructedObjectId: "000000003f3ce82c000000000269b7b0"
            #localMonthsOverflow: null
            #localYearsOverflow: null
            #localStrictModeEnabled: null
            #localHumanDiffOptions: null
            #localToStringFormat: null
            #localSerializer: null
            #localMacros: null
            #localGenericMacros: null
            #localFormatFunction: null
            #localTranslator: null
            #dumpProperties: array:3 [
              0 => "date"
              1 => "timezone_type"
              2 => "timezone"
            ]
            #dumpLocale: null
            date: 2021-05-16 03:08:07.0 -07:00
          }
        ]
      }
      "return_path" => Webklex\PHPIMAP\Attribute^ {#1387
        #name: "return_path"
        #values: array:1 [
          0 => "<sendermail@gmail.com>"
        ]
      }
      "delivered_to" => Webklex\PHPIMAP\Attribute^ {#1388
        #name: "delivered_to"
        #values: array:1 [
          0 => "kontakt@mydomain.com"
        ]
      }
      "received" => Webklex\PHPIMAP\Attribute^ {#1409
        #name: "received"
        #values: array:1 [
          0 => "from mail.mydomain.com, by crm.myserver.com with LMTP, id 0CxQAw3voGA71yAAEA9nmQ, (envelope-from <sendermail@gmail.com>), for <kontakt@mydomain.com>"
        ]
      }
      "x_spam_checker_version" => Webklex\PHPIMAP\Attribute^ {#1390
        #name: "x_spam_checker_version"
        #values: array:1 [
          0 => "SpamAssassin 3.4.2 (2018-09-13) on crm.myserver.com"
        ]
      }
      "x_spam_level" => Webklex\PHPIMAP\Attribute^ {#1391
        #name: "x_spam_level"
        #values: array:1 [
          0 => "****"
        ]
      }
      "x_spam_status" => Webklex\PHPIMAP\Attribute^ {#1392
        #name: "x_spam_status"
        #values: array:5 [
          0 => "No, score=4.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,"
          1 => "DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,"
          2 => "FREEMAIL_REPLY,HK_NAME_FM_MR_MRS,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,"
          3 => "LOTS_OF_MONEY,MIME_HTML_ONLY,RCVD_IN_DNSWL_NONE,SPF_PASS"
          4 => "autolearn=disabled version=3.4.2"
        ]
      }
      "dkim_signature" => Webklex\PHPIMAP\Attribute^ {#1410
        #name: "dkim_signature"
        #values: array:1 [
          0 => "v=1"
        ]
      }
      "x_google_dkim_signature" => Webklex\PHPIMAP\Attribute^ {#1418
        #name: "x_google_dkim_signature"
        #values: array:1 [
          0 => "v=1"
        ]
      }
      "x_gm_message_state" => Webklex\PHPIMAP\Attribute^ {#1395
        #name: "x_gm_message_state"
        #values: array:1 [
          0 => "AOAM5335mjF5LBxHW0FUwXAT7TbKxMh1vzkQRWSCz5hh9DoShm+29RlF eAn4Fy4C4U004GVhH0dhHkxaHJENpmhVoKzGAgIiADVaoSBCN5yxIlj/49DjOWIz"
        ]
      }
      "x_google_smtp_source" => Webklex\PHPIMAP\Attribute^ {#1396
        #name: "x_google_smtp_source"
        #values: array:1 [
          0 => "ABdhPJxLfLmeuyLFZqeK1V/O/4SUHvx+QX9MI0uRUd30lbwncU89naPsSMmAYj4RTAigVl9nA14pVS/iGDr941UBbc34ZAvROTD+ueoc7wVE"
        ]
      }
      "x_received" => Webklex\PHPIMAP\Attribute^ {#1419
        #name: "x_received"
        #values: array:1 [
          0 => "by 2002:a02:5289:: with SMTP id d131mr10319780jab.121.1621159687842"
        ]
      }
      "mime_version" => Webklex\PHPIMAP\Attribute^ {#1398
        #name: "mime_version"
        #values: array:1 [
          0 => "1.0"
        ]
      }
      "content_type" => Webklex\PHPIMAP\Attribute^ {#1420
        #name: "content_type"
        #values: array:1 [
          0 => "text/html"
        ]
      }
      "content_transfer_encoding" => Webklex\PHPIMAP\Attribute^ {#1400
        #name: "content_transfer_encoding"
        #values: array:1 [
          0 => "base64"
        ]
      }
      "content_disposition" => Webklex\PHPIMAP\Attribute^ {#1401
        #name: "content_disposition"
        #values: array:1 [
          0 => "inline"
        ]
      }
      "precedence" => Webklex\PHPIMAP\Attribute^ {#1402
        #name: "precedence"
        #values: array:1 [
          0 => "bulk"
        ]
      }
      "x_autoreply" => Webklex\PHPIMAP\Attribute^ {#1403
        #name: "x_autoreply"
        #values: array:1 [
          0 => "yes"
        ]
      }
      "auto_submitted" => Webklex\PHPIMAP\Attribute^ {#1404
        #name: "auto_submitted"
        #values: array:1 [
          0 => "auto-replied"
        ]
      }
      "toaddress" => Webklex\PHPIMAP\Attribute^ {#1405
        #name: "toaddress"
        #values: array:1 [
          0 => "kontakt@mydomain.com"
        ]
      }
      "fromaddress" => Webklex\PHPIMAP\Attribute^ {#1406
        #name: "fromaddress"
        #values: array:1 [
          0 => "Mrs Maria Elisabeth Schaeffler <sendermail@gmail.com>"
        ]
      }
      "reply_toaddress" => Webklex\PHPIMAP\Attribute^ {#1407
        #name: "reply_toaddress"
        #values: array:1 [
          0 => "Mrs Maria Elisabeth Schaeffler <sendermail@gmail.com>"
        ]
      }
      "senderaddress" => Webklex\PHPIMAP\Attribute^ {#1408
        #name: "senderaddress"
        #values: array:1 [
          0 => "Mrs Maria Elisabeth Schaeffler <sendermail@gmail.com>"
        ]
      }
      "a" => Webklex\PHPIMAP\Attribute^ {#1411
        #name: "a"
        #values: array:1 [
          0 => "rsa-sha256"
        ]
      }
      "c" => Webklex\PHPIMAP\Attribute^ {#1412
        #name: "c"
        #values: array:1 [
          0 => "relaxed/relaxed"
        ]
      }
      ", d" => Webklex\PHPIMAP\Attribute^ {#1413
        #name: ", d"
        #values: array:1 [
          0 => "gmail.com"
        ]
      }
      "s" => Webklex\PHPIMAP\Attribute^ {#1414
        #name: "s"
        #values: array:1 [
          0 => "20161025"
        ]
      }
      ", h" => Webklex\PHPIMAP\Attribute^ {#1415
        #name: ", h"
        #values: array:1 [
          0 => "to:from:date:message-id:subject:mime-version, :content-transfer-encoding:content-disposition:precedence, :auto-submitted"
        ]
      }
      ", bh" => Webklex\PHPIMAP\Attribute^ {#1416
        #name: ", bh"
        #values: array:1 [
          0 => "uD0/QTo29gZ2wAfpm2UYWXlsdFaoRmvAG/7IcPijLpI="
        ]
      }
      ", b" => Webklex\PHPIMAP\Attribute^ {#1417
        #name: ", b"
        #values: array:1 [
          0 => "JqjtnjirnmyjUHKkrTB0zErcvGM/r+dbcYMiB2Tq+Mkxv2YKyGfwl8AyHwtyztZesp, mFwxi4E1+4vyQ8NVouFSPItaA9dcqmQMro/C9bI9cBae/H/8XdshKieYxTd1Q082CIXA, TftNTsk0gE3NQUggr8Bvynrf99nHdUx43TpWSN4e8dmMyzb25qDAEmAwKEuqE302NEQx, lQGbWBxZsdf3FJuMmnb0if6cxM5YLjKfoyRxhRFAgUdGaESKhWg/2J6FZfhHK+FnJqMN, UMBu1G/lBGmdAV/AH+5BY438pvpFx2GLi4RjdTs2CMN12ON9hbUx/kYq06JmE1ztUyp4, hrUw=="
        ]
      }
      "charset" => Webklex\PHPIMAP\Attribute^ {#1421
        #name: "charset"
        #values: array:1 [
          0 => "UTF-8"
        ]
      }
    ]
    #config: array:12 [
      "delimiter" => "/"
      "fetch" => 1
      "sequence" => 3
      "fetch_body" => true
      "fetch_flags" => true
      "soft_fail" => false
      "message_key" => "list"
      "fetch_order" => "asc"
      "dispositions" => array:2 [
        0 => "attachment"
        1 => "inline"
      ]
      "common_folders" => array:5 [
        "root" => "INBOX"
        "junk" => "INBOX/Junk"
        "draft" => "INBOX/Drafts"
        "sent" => "INBOX/Sent"
        "trash" => "INBOX/Trash"
      ]
      "decoder" => array:2 [
        "message" => "utf-8"
        "attachment" => "utf-8"
      ]
      "open" => []
    ]
    +fallback_encoding: "UTF-8"
    #attributize: true
  }
  +raw_body: null
  #structure: Webklex\PHPIMAP\Structure^ {#1361
    +raw: """
      PGRpdiBkaXI9Imx0ciI+PGIgc3R5bGU9ImNvbG9yOnJnYigzMiwzMywzNikiPjxzcGFuIHN0eWxl\r\n
      PSJjb2xvcjpyZWQiPkR6aWXFhCBkb2JyeSw8L3NwYW4+PGJyPjxicj5OYXp5d2FtIHNpxJkgTWFy\r\n
      aWEgRWxpc2FiZXRoIFNjaGFlZmZsZXIsIG5pZW1pZWNraSBwb3RlbnRhdCBiaXpuZXNvd3ksIGlu\r\n
      d2VzdG9yIGkgZmlsYW50cm9wLiBKZXN0ZW0gcHJlemVzZW0gV2lwcm8gTGltaXRlZC4gT2RkYcWC\r\n
      ZW0gMjUgcHJvY2VudCBtb2plZ28gb3NvYmlzdGVnbyBtYWrEhXRrdSBuYSBjZWxlIGNoYXJ5dGF0\r\n
      eXduZS4gWm9ib3dpxIV6YcWCZW0gc2nEmSByw7N3bmllxbwgZG8gb2RkYW5pYSBwb3pvc3RhxYJ5\r\n
      Y2ggMjUlIHcgdHltIHJva3UgMjAyMCBpbmR5d2lkdWFsbnltIG9zb2JvbS4gUG9zdGFub3dpxYJl\r\n
      bSBwcnpla2F6YcSHIHdhbSA3MDAgMDAwIDAwMCwwMCBldXJvLiBKZcWbbGkgamVzdGXFmyB6YWlu\r\n
      dGVyZXNvd2FueSBtb2rEhSBkYXJvd2l6bsSFLCBza29udGFrdHVqIHNpxJkgemUgbW7EhSwgYWJ5\r\n
      IHV6eXNrYcSHIHdpxJljZWogaW5mb3JtYWNqaS48YnI+PGJyPk1vxbxlc3ogcsOzd25pZcW8IHBy\r\n
      emVjenl0YcSHIHdpxJljZWogbyBtbmllLCBrbGlrYWrEhWMgcG9uacW8c3p5IGxpbms8YnI+PGJy\r\n
      PjxzcGFuIHN0eWxlPSJjb2xvcjpibHVlIj48YSBocmVmPSJodHRwczovL2VuLndpa2lwZWRpYS5v\r\n
      cmcvd2lraS9NYXJpYS1FbGlzYWJldGhfU2NoYWVmZmxlciIgcmVsPSJub29wZW5lciBub3JlZmVy\r\n
      cmVyIiB0YXJnZXQ9Il9ibGFuayI+aHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTWFyaWEt\r\n
      RWxpc2FiZXRoX1NjaGFlZmZsZXI8L2E+PGJyPjwvc3Bhbj48YnI+Q2llcMWCZSBwb3pkcm93aWVu\r\n
      aWU8YnI+PHNwYW4gc3R5bGU9ImNvbG9yOnJlZCI+Q0VPIFdpcHJvIExpbWl0ZWQ8YnI+PC9zcGFu\r\n
      Pk1hcmlhLUVsaXNhYmV0aF9TY2hhZWZmbGVyPGJyPkUtbWFpbDrCoMKgPHNwYW4gc3R5bGU9ImNv\r\n
      bG9yOmJsdWUiPjxhIGhyZWY9Im1haWx0bzpNcnNtYXJpYWVsaXNhYmV0aHNjaGFlZmZsZXJkb25h\r\n
      dGlvbkBvdXRsb29rLmNvbSIgcmVsPSJub29wZW5lciBub3JlZmVycmVyIiB0YXJnZXQ9Il9ibGFu\r\n
      ayI+TXJzbWFyaWFlbGlzYWJldGhzY2hhZWZmbGVyZG9uYXRpb25Ab3V0bG9vay5jb208L2E+wqDC\r\n
      oDwvc3Bhbj48L2I+PGJyPjwvZGl2Pjxici8+PGJyLz4tLSA8YnIvPjxkaXYgZGlyPSJsdHIiPjxk\r\n
      aXY+PGI+PHNwYW4gc3R5bGU9ImNvbG9yOnJlZCI+RHppZcWEIGRvYnJ5LDwvc3Bhbj48YnI+PGJy\r\n
      Pk5henl3YW0gc2nEmSBNYXJpYSBFbGlzYWJldGggU2NoYWVmZmxlciwgbmllbWllY2tpIHBvdGVu\r\n
      dGF0IGJpem5lc293eSwgaW53ZXN0b3IgaSBmaWxhbnRyb3AuIEplc3RlbSBwcmV6ZXNlbSBXaXBy\r\n
      byBMaW1pdGVkLiBPZGRhxYJlbSAyNSBwcm9jZW50IG1vamVnbyBvc29iaXN0ZWdvIG1hasSFdGt1\r\n
      IG5hIGNlbGUgY2hhcnl0YXR5d25lLiBab2Jvd2nEhXphxYJlbSBzacSZIHLDs3duaWXFvCBkbyBv\r\n
      ZGRhbmlhIHBvem9zdGHFgnljaCAyNSUgdyB0eW0gcm9rdSAyMDIxIGluZHl3aWR1YWxueW0gb3Nv\r\n
      Ym9tLiBQb3N0YW5vd2nFgmVtIHByemVrYXphxIcgd2FtIDcwMCAwMDAgMDAwLDAwIGV1cm8uIEpl\r\n
      xZtsaSBqZXN0ZcWbIHphaW50ZXJlc293YW55IG1vasSFIGRhcm93aXpuxIUsIHNrb250YWt0dWog\r\n
      c2nEmSB6ZSBtbsSFLCBhYnkgdXp5c2thxIcgd2nEmWNlaiBpbmZvcm1hY2ppLjxicj48YnI+TW/F\r\n
      vGVzeiByw7N3bmllxbwgcHJ6ZWN6eXRhxIcgd2nEmWNlaiBvIG1uaWUsIGtsaWthasSFYyBwb25p\r\n
      xbxzenkgbGluazxicj48YnI+PHNwYW4gc3R5bGU9ImNvbG9yOmJsdWUiPjxhIGhyZWY9Imh0dHBz\r\n
      Oi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL01hcmlhLUVsaXNhYmV0aF9TY2hhZWZmbGVyIiByZWw9\r\n
      Im5vb3BlbmVyIG5vcmVmZXJyZXIiIHRhcmdldD0iX2JsYW5rIj5odHRwczovL2VuLndpa2lwZWRp\r\n
      YS5vcmcvd2lraS9NYXJpYS1FbGlzYWJldGhfU2NoYWVmZmxlcjwvYT48YnI+PC9zcGFuPjxicj5D\r\n
      aWVwxYJlIHBvemRyb3dpZW5pZTxicj48c3BhbiBzdHlsZT0iY29sb3I6cmVkIj5DRU8gV2lwcm8g\r\n
      TGltaXRlZDxicj48L3NwYW4+TWFyaWEtRWxpc2FiZXRoX1NjaGFlZmZsZXI8YnI+RS1tYWlsOsKg\r\n
      wqA8c3BhbiBzdHlsZT0iY29sb3I6Ymx1ZSI+PGEgaHJlZj0ibWFpbHRvOk1yc21hcmlhZWxpc2Fi\r\n
      ZXRoc2NoYWVmZmxlcmRvbmF0aW9uQG91dGxvb2suY29tIiByZWw9Im5vb3BlbmVyIG5vcmVmZXJy\r\n
      ZXIiIHRhcmdldD0iX2JsYW5rIj5NcnNtYXJpYWVsaXNhYmV0aHNjaGFlZmZsZXJkb25hdGlvbkBv\r\n
      dXRsb29rLmNvbTwvYT7CoMKgPC9zcGFuPjwvYj48YnI+PC9kaXY+PC9kaXY+PGJyLz4NCg==\r\n
      """
    -header: Webklex\PHPIMAP\Header^ {#1368}
    +type: 0
    +parts: array:1 [
      0 => Webklex\PHPIMAP\Part^ {#1370
        +raw: """
          PGRpdiBkaXI9Imx0ciI+PGIgc3R5bGU9ImNvbG9yOnJnYigzMiwzMywzNikiPjxzcGFuIHN0eWxl\r\n
          PSJjb2xvcjpyZWQiPkR6aWXFhCBkb2JyeSw8L3NwYW4+PGJyPjxicj5OYXp5d2FtIHNpxJkgTWFy\r\n
          aWEgRWxpc2FiZXRoIFNjaGFlZmZsZXIsIG5pZW1pZWNraSBwb3RlbnRhdCBiaXpuZXNvd3ksIGlu\r\n
          d2VzdG9yIGkgZmlsYW50cm9wLiBKZXN0ZW0gcHJlemVzZW0gV2lwcm8gTGltaXRlZC4gT2RkYcWC\r\n
          ZW0gMjUgcHJvY2VudCBtb2plZ28gb3NvYmlzdGVnbyBtYWrEhXRrdSBuYSBjZWxlIGNoYXJ5dGF0\r\n
          eXduZS4gWm9ib3dpxIV6YcWCZW0gc2nEmSByw7N3bmllxbwgZG8gb2RkYW5pYSBwb3pvc3RhxYJ5\r\n
          Y2ggMjUlIHcgdHltIHJva3UgMjAyMCBpbmR5d2lkdWFsbnltIG9zb2JvbS4gUG9zdGFub3dpxYJl\r\n
          bSBwcnpla2F6YcSHIHdhbSA3MDAgMDAwIDAwMCwwMCBldXJvLiBKZcWbbGkgamVzdGXFmyB6YWlu\r\n
          dGVyZXNvd2FueSBtb2rEhSBkYXJvd2l6bsSFLCBza29udGFrdHVqIHNpxJkgemUgbW7EhSwgYWJ5\r\n
          IHV6eXNrYcSHIHdpxJljZWogaW5mb3JtYWNqaS48YnI+PGJyPk1vxbxlc3ogcsOzd25pZcW8IHBy\r\n
          emVjenl0YcSHIHdpxJljZWogbyBtbmllLCBrbGlrYWrEhWMgcG9uacW8c3p5IGxpbms8YnI+PGJy\r\n
          PjxzcGFuIHN0eWxlPSJjb2xvcjpibHVlIj48YSBocmVmPSJodHRwczovL2VuLndpa2lwZWRpYS5v\r\n
          cmcvd2lraS9NYXJpYS1FbGlzYWJldGhfU2NoYWVmZmxlciIgcmVsPSJub29wZW5lciBub3JlZmVy\r\n
          cmVyIiB0YXJnZXQ9Il9ibGFuayI+aHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTWFyaWEt\r\n
          RWxpc2FiZXRoX1NjaGFlZmZsZXI8L2E+PGJyPjwvc3Bhbj48YnI+Q2llcMWCZSBwb3pkcm93aWVu\r\n
          aWU8YnI+PHNwYW4gc3R5bGU9ImNvbG9yOnJlZCI+Q0VPIFdpcHJvIExpbWl0ZWQ8YnI+PC9zcGFu\r\n
          Pk1hcmlhLUVsaXNhYmV0aF9TY2hhZWZmbGVyPGJyPkUtbWFpbDrCoMKgPHNwYW4gc3R5bGU9ImNv\r\n
          bG9yOmJsdWUiPjxhIGhyZWY9Im1haWx0bzpNcnNtYXJpYWVsaXNhYmV0aHNjaGFlZmZsZXJkb25h\r\n
          dGlvbkBvdXRsb29rLmNvbSIgcmVsPSJub29wZW5lciBub3JlZmVycmVyIiB0YXJnZXQ9Il9ibGFu\r\n
          ayI+TXJzbWFyaWFlbGlzYWJldGhzY2hhZWZmbGVyZG9uYXRpb25Ab3V0bG9vay5jb208L2E+wqDC\r\n
          oDwvc3Bhbj48L2I+PGJyPjwvZGl2Pjxici8+PGJyLz4tLSA8YnIvPjxkaXYgZGlyPSJsdHIiPjxk\r\n
          aXY+PGI+PHNwYW4gc3R5bGU9ImNvbG9yOnJlZCI+RHppZcWEIGRvYnJ5LDwvc3Bhbj48YnI+PGJy\r\n
          Pk5henl3YW0gc2nEmSBNYXJpYSBFbGlzYWJldGggU2NoYWVmZmxlciwgbmllbWllY2tpIHBvdGVu\r\n
          dGF0IGJpem5lc293eSwgaW53ZXN0b3IgaSBmaWxhbnRyb3AuIEplc3RlbSBwcmV6ZXNlbSBXaXBy\r\n
          byBMaW1pdGVkLiBPZGRhxYJlbSAyNSBwcm9jZW50IG1vamVnbyBvc29iaXN0ZWdvIG1hasSFdGt1\r\n
          IG5hIGNlbGUgY2hhcnl0YXR5d25lLiBab2Jvd2nEhXphxYJlbSBzacSZIHLDs3duaWXFvCBkbyBv\r\n
          ZGRhbmlhIHBvem9zdGHFgnljaCAyNSUgdyB0eW0gcm9rdSAyMDIxIGluZHl3aWR1YWxueW0gb3Nv\r\n
          Ym9tLiBQb3N0YW5vd2nFgmVtIHByemVrYXphxIcgd2FtIDcwMCAwMDAgMDAwLDAwIGV1cm8uIEpl\r\n
          xZtsaSBqZXN0ZcWbIHphaW50ZXJlc293YW55IG1vasSFIGRhcm93aXpuxIUsIHNrb250YWt0dWog\r\n
          c2nEmSB6ZSBtbsSFLCBhYnkgdXp5c2thxIcgd2nEmWNlaiBpbmZvcm1hY2ppLjxicj48YnI+TW/F\r\n
          vGVzeiByw7N3bmllxbwgcHJ6ZWN6eXRhxIcgd2nEmWNlaiBvIG1uaWUsIGtsaWthasSFYyBwb25p\r\n
          xbxzenkgbGluazxicj48YnI+PHNwYW4gc3R5bGU9ImNvbG9yOmJsdWUiPjxhIGhyZWY9Imh0dHBz\r\n
          Oi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL01hcmlhLUVsaXNhYmV0aF9TY2hhZWZmbGVyIiByZWw9\r\n
          Im5vb3BlbmVyIG5vcmVmZXJyZXIiIHRhcmdldD0iX2JsYW5rIj5odHRwczovL2VuLndpa2lwZWRp\r\n
          YS5vcmcvd2lraS9NYXJpYS1FbGlzYWJldGhfU2NoYWVmZmxlcjwvYT48YnI+PC9zcGFuPjxicj5D\r\n
          aWVwxYJlIHBvemRyb3dpZW5pZTxicj48c3BhbiBzdHlsZT0iY29sb3I6cmVkIj5DRU8gV2lwcm8g\r\n
          TGltaXRlZDxicj48L3NwYW4+TWFyaWEtRWxpc2FiZXRoX1NjaGFlZmZsZXI8YnI+RS1tYWlsOsKg\r\n
          wqA8c3BhbiBzdHlsZT0iY29sb3I6Ymx1ZSI+PGEgaHJlZj0ibWFpbHRvOk1yc21hcmlhZWxpc2Fi\r\n
          ZXRoc2NoYWVmZmxlcmRvbmF0aW9uQG91dGxvb2suY29tIiByZWw9Im5vb3BlbmVyIG5vcmVmZXJy\r\n
          ZXIiIHRhcmdldD0iX2JsYW5rIj5NcnNtYXJpYWVsaXNhYmV0aHNjaGFlZmZsZXJkb25hdGlvbkBv\r\n
          dXRsb29rLmNvbTwvYT7CoMKgPC9zcGFuPjwvYj48YnI+PC9kaXY+PC9kaXY+PGJyLz4NCg==\r\n
          """
        +type: 0
        +content: """
          PGRpdiBkaXI9Imx0ciI+PGIgc3R5bGU9ImNvbG9yOnJnYigzMiwzMywzNikiPjxzcGFuIHN0eWxl\r\n
          PSJjb2xvcjpyZWQiPkR6aWXFhCBkb2JyeSw8L3NwYW4+PGJyPjxicj5OYXp5d2FtIHNpxJkgTWFy\r\n
          aWEgRWxpc2FiZXRoIFNjaGFlZmZsZXIsIG5pZW1pZWNraSBwb3RlbnRhdCBiaXpuZXNvd3ksIGlu\r\n
          d2VzdG9yIGkgZmlsYW50cm9wLiBKZXN0ZW0gcHJlemVzZW0gV2lwcm8gTGltaXRlZC4gT2RkYcWC\r\n
          ZW0gMjUgcHJvY2VudCBtb2plZ28gb3NvYmlzdGVnbyBtYWrEhXRrdSBuYSBjZWxlIGNoYXJ5dGF0\r\n
          eXduZS4gWm9ib3dpxIV6YcWCZW0gc2nEmSByw7N3bmllxbwgZG8gb2RkYW5pYSBwb3pvc3RhxYJ5\r\n
          Y2ggMjUlIHcgdHltIHJva3UgMjAyMCBpbmR5d2lkdWFsbnltIG9zb2JvbS4gUG9zdGFub3dpxYJl\r\n
          bSBwcnpla2F6YcSHIHdhbSA3MDAgMDAwIDAwMCwwMCBldXJvLiBKZcWbbGkgamVzdGXFmyB6YWlu\r\n
          dGVyZXNvd2FueSBtb2rEhSBkYXJvd2l6bsSFLCBza29udGFrdHVqIHNpxJkgemUgbW7EhSwgYWJ5\r\n
          IHV6eXNrYcSHIHdpxJljZWogaW5mb3JtYWNqaS48YnI+PGJyPk1vxbxlc3ogcsOzd25pZcW8IHBy\r\n
          emVjenl0YcSHIHdpxJljZWogbyBtbmllLCBrbGlrYWrEhWMgcG9uacW8c3p5IGxpbms8YnI+PGJy\r\n
          PjxzcGFuIHN0eWxlPSJjb2xvcjpibHVlIj48YSBocmVmPSJodHRwczovL2VuLndpa2lwZWRpYS5v\r\n
          cmcvd2lraS9NYXJpYS1FbGlzYWJldGhfU2NoYWVmZmxlciIgcmVsPSJub29wZW5lciBub3JlZmVy\r\n
          cmVyIiB0YXJnZXQ9Il9ibGFuayI+aHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTWFyaWEt\r\n
          RWxpc2FiZXRoX1NjaGFlZmZsZXI8L2E+PGJyPjwvc3Bhbj48YnI+Q2llcMWCZSBwb3pkcm93aWVu\r\n
          aWU8YnI+PHNwYW4gc3R5bGU9ImNvbG9yOnJlZCI+Q0VPIFdpcHJvIExpbWl0ZWQ8YnI+PC9zcGFu\r\n
          Pk1hcmlhLUVsaXNhYmV0aF9TY2hhZWZmbGVyPGJyPkUtbWFpbDrCoMKgPHNwYW4gc3R5bGU9ImNv\r\n
          bG9yOmJsdWUiPjxhIGhyZWY9Im1haWx0bzpNcnNtYXJpYWVsaXNhYmV0aHNjaGFlZmZsZXJkb25h\r\n
          dGlvbkBvdXRsb29rLmNvbSIgcmVsPSJub29wZW5lciBub3JlZmVycmVyIiB0YXJnZXQ9Il9ibGFu\r\n
          ayI+TXJzbWFyaWFlbGlzYWJldGhzY2hhZWZmbGVyZG9uYXRpb25Ab3V0bG9vay5jb208L2E+wqDC\r\n
          oDwvc3Bhbj48L2I+PGJyPjwvZGl2Pjxici8+PGJyLz4tLSA8YnIvPjxkaXYgZGlyPSJsdHIiPjxk\r\n
          aXY+PGI+PHNwYW4gc3R5bGU9ImNvbG9yOnJlZCI+RHppZcWEIGRvYnJ5LDwvc3Bhbj48YnI+PGJy\r\n
          Pk5henl3YW0gc2nEmSBNYXJpYSBFbGlzYWJldGggU2NoYWVmZmxlciwgbmllbWllY2tpIHBvdGVu\r\n
          dGF0IGJpem5lc293eSwgaW53ZXN0b3IgaSBmaWxhbnRyb3AuIEplc3RlbSBwcmV6ZXNlbSBXaXBy\r\n
          byBMaW1pdGVkLiBPZGRhxYJlbSAyNSBwcm9jZW50IG1vamVnbyBvc29iaXN0ZWdvIG1hasSFdGt1\r\n
          IG5hIGNlbGUgY2hhcnl0YXR5d25lLiBab2Jvd2nEhXphxYJlbSBzacSZIHLDs3duaWXFvCBkbyBv\r\n
          ZGRhbmlhIHBvem9zdGHFgnljaCAyNSUgdyB0eW0gcm9rdSAyMDIxIGluZHl3aWR1YWxueW0gb3Nv\r\n
          Ym9tLiBQb3N0YW5vd2nFgmVtIHByemVrYXphxIcgd2FtIDcwMCAwMDAgMDAwLDAwIGV1cm8uIEpl\r\n
          xZtsaSBqZXN0ZcWbIHphaW50ZXJlc293YW55IG1vasSFIGRhcm93aXpuxIUsIHNrb250YWt0dWog\r\n
          c2nEmSB6ZSBtbsSFLCBhYnkgdXp5c2thxIcgd2nEmWNlaiBpbmZvcm1hY2ppLjxicj48YnI+TW/F\r\n
          vGVzeiByw7N3bmllxbwgcHJ6ZWN6eXRhxIcgd2nEmWNlaiBvIG1uaWUsIGtsaWthasSFYyBwb25p\r\n
          xbxzenkgbGluazxicj48YnI+PHNwYW4gc3R5bGU9ImNvbG9yOmJsdWUiPjxhIGhyZWY9Imh0dHBz\r\n
          Oi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL01hcmlhLUVsaXNhYmV0aF9TY2hhZWZmbGVyIiByZWw9\r\n
          Im5vb3BlbmVyIG5vcmVmZXJyZXIiIHRhcmdldD0iX2JsYW5rIj5odHRwczovL2VuLndpa2lwZWRp\r\n
          YS5vcmcvd2lraS9NYXJpYS1FbGlzYWJldGhfU2NoYWVmZmxlcjwvYT48YnI+PC9zcGFuPjxicj5D\r\n
          aWVwxYJlIHBvemRyb3dpZW5pZTxicj48c3BhbiBzdHlsZT0iY29sb3I6cmVkIj5DRU8gV2lwcm8g\r\n
          TGltaXRlZDxicj48L3NwYW4+TWFyaWEtRWxpc2FiZXRoX1NjaGFlZmZsZXI8YnI+RS1tYWlsOsKg\r\n
          wqA8c3BhbiBzdHlsZT0iY29sb3I6Ymx1ZSI+PGEgaHJlZj0ibWFpbHRvOk1yc21hcmlhZWxpc2Fi\r\n
          ZXRoc2NoYWVmZmxlcmRvbmF0aW9uQG91dGxvb2suY29tIiByZWw9Im5vb3BlbmVyIG5vcmVmZXJy\r\n
          ZXIiIHRhcmdldD0iX2JsYW5rIj5NcnNtYXJpYWVsaXNhYmV0aHNjaGFlZmZsZXJkb25hdGlvbkBv\r\n
          dXRsb29rLmNvbTwvYT7CoMKgPC9zcGFuPjwvYj48YnI+PC9kaXY+PC9kaXY+PGJyLz4NCg==
          """
        +subtype: "html"
        +charset: Webklex\PHPIMAP\Attribute^ {#1421}
        +encoding: 3
        +ifdisposition: true
        +disposition: Webklex\PHPIMAP\Attribute^ {#1401}
        +ifdescription: false
        +description: null
        +filename: null
        +name: null
        +id: null
        +part_number: 0
        +bytes: 3192
        +content_type: "text/html"
        -header: Webklex\PHPIMAP\Header^ {#1368}
      }
    ]
    #config: array:12 [
      "delimiter" => "/"
      "fetch" => 1
      "sequence" => 3
      "fetch_body" => true
      "fetch_flags" => true
      "soft_fail" => false
      "message_key" => "list"
      "fetch_order" => "asc"
      "dispositions" => array:2 [
        0 => "attachment"
        1 => "inline"
      ]
      "common_folders" => array:5 [
        "root" => "INBOX"
        "junk" => "INBOX/Junk"
        "draft" => "INBOX/Drafts"
        "sent" => "INBOX/Sent"
        "trash" => "INBOX/Trash"
      ]
      "decoder" => array:2 [
        "message" => "utf-8"
        "attachment" => "utf-8"
      ]
      "open" => []
    ]
  }
  +bodies: []
  +attachments: Webklex\PHPIMAP\Support\AttachmentCollection^ {#1363
    #total: null
    #items: array:1 [
      0 => Webklex\PHPIMAP\Attachment^ {#1373
        #oMessage: Webklex\PHPIMAP\Message^ {#1362}
        #config: array:12 [
          "delimiter" => "/"
          "fetch" => 1
          "sequence" => 3
          "fetch_body" => true
          "fetch_flags" => true
          "soft_fail" => false
          "message_key" => "list"
          "fetch_order" => "asc"
          "dispositions" => array:2 [
            0 => "attachment"
            1 => "inline"
          ]
          "common_folders" => array:5 [
            "root" => "INBOX"
            "junk" => "INBOX/Junk"
            "draft" => "INBOX/Drafts"
            "sent" => "INBOX/Sent"
            "trash" => "INBOX/Trash"
          ]
          "decoder" => array:2 [
            "message" => "utf-8"
            "attachment" => "utf-8"
          ]
          "open" => []
        ]
        #part: Webklex\PHPIMAP\Part^ {#1370}
        #attributes: array:9 [
          "content" => "<div dir="ltr"><b style="color:rgb(32,33,36)"><span style="color:red">Dzień dobry,</span><br><br>Nazywam się Maria Elisabeth Schaeffler, niemiecki potentat biznesowy, inwestor i filantrop. Jestem prezesem Wipro Limited. Oddałem 25 procent mojego osobistego majątku na cele charytatywne. Zobowiązałem się również do oddania pozostałych 25% w tym roku 2020 indywidualnym osobom. Postanowiłem przekazać wam 700 000 000,00 euro. Jeśli jesteś zainteresowany moją darowizną, skontaktuj się ze mną, aby uzyskać więcej informacji.<br><br>Możesz również przeczytać więcej o mnie, klikając poniższy link<br><br><span style="color:blue"><a href="https://en.wikipedia.org/wiki/Maria-Elisabeth_Schaeffler" rel="noopener noreferrer" target="_blank">https://en.wikipedia.org/wiki/Maria-Elisabeth_Schaeffler</a><br></span><br>Ciepłe pozdrowienie<br><span style="color:red">CEO Wipro Limited<br></span>Maria-Elisabeth_Schaeffler<br>E-mail:  <span style="color:blue"><a href="mailto:Mrsmariaelisabethschaefflerdonation@outlook.com" rel="noopener noreferrer" target="_blank">Mrsmariaelisabethschaefflerdonation@outlook.com</a>  </span></b><br></div><br/><br/>-- <br/><div dir="ltr"><div><b><span style="color:red">Dzień dobry,</span><br><br>Nazywam się Maria Elisabeth Schaeffler, niemiecki potentat biznesowy, inwestor i filantrop. Jestem prezesem Wipro Limited. Oddałem 25 procent mojego osobistego majątku na cele charytatywne. Zobowiązałem się również do oddania pozostałych 25% w tym roku 2021 indywidualnym osobom. Postanowiłem przekazać wam 700 000 000,00 euro. Jeśli jesteś zainteresowany moją darowizną, skontaktuj się ze mną, aby uzyskać więcej informacji.<br><br>Możesz również przeczytać więcej o mnie, klikając poniższy link<br><br><span style="color:blue"><a href="https://en.wikipedia.org/wiki/Maria-Elisabeth_Schaeffler" rel="noopener noreferrer" target="_blank">https://en.wikipedia.org/wiki/Maria-Elisabeth_Schaeffler</a><br></span><br>Ciepłe pozdrowienie<br><span style="color:red">CEO Wipro Limited<br></span>Maria-Elisabeth_Schaeffler<br>E-mail:  <span style="color:blue"><a href="mailto:Mrsmariaelisabethschaefflerdonation@outlook.com" rel="noopener noreferrer" target="_blank">Mrsmariaelisabethschaefflerdonation@outlook.com</a>  </span></b><br></div></div><br/>\r\n"
          "type" => "text"
          "part_number" => 0
          "content_type" => "text/html"
          "id" => null
          "name" => "undefined"
          "disposition" => Webklex\PHPIMAP\Attribute^ {#1401}
          "img_src" => null
          "size" => 3192
        ]
        #mask: "Webklex\PHPIMAP\Support\Masks\AttachmentMask"
      }
    ]
  }
  +flags: Webklex\PHPIMAP\Support\FlagCollection^ {#1374
    #total: null
    #items: array:1 [
      "seen" => "Seen"
    ]
  }
  -available_flags: array:6 [
    0 => "recent"
    1 => "flagged"
    2 => "answered"
    3 => "deleted"
    4 => "seen"
    5 => "draft"
  ]
  #events: array:2 [
    "message" => array:5 [
      "new" => "Webklex\IMAP\Events\MessageNewEvent"
      "moved" => "Webklex\IMAP\Events\MessageMovedEvent"
      "copied" => "Webklex\IMAP\Events\MessageCopiedEvent"
      "deleted" => "Webklex\IMAP\Events\MessageDeletedEvent"
      "restored" => "Webklex\IMAP\Events\MessageRestoredEvent"
    ]
    "flag" => array:2 [
      "new" => "Webklex\IMAP\Events\FlagNewEvent"
      "deleted" => "Webklex\IMAP\Events\FlagDeletedEvent"
    ]
  ]
}```

php-imap  2.5.0 used
Webklex commented 3 years ago

Hi @damian-g , many thanks for your report.

Please provide an except of the code you are using and which is returning an empty body.

Best regards,

nouman-creation commented 3 years ago

i am facing the same issue.

$message->getHtmlBody(true);

return null

but $message->getTextBody(true);

returns Text..