We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d00f7b9 commit 48f1633Copy full SHA for 48f1633
src/IMAP/Message.php
@@ -382,6 +382,17 @@ private function parseAddresses($list) {
382
public function parseBody() {
383
$structure = imap_fetchstructure($this->client->getConnection(), $this->uid, $this->fetch_options);
384
385
+ $parts = $structure->parts;
386
+
387
+ foreach ($parts as $part) {
388
+ foreach ($part->parameters as $parameter) {
389
+ if($parameter->attribute == "charset") {
390
+ $encoding = $parameter->value;
391
+ $parameter->value = preg_replace('/Content-Transfer-Encoding/', '', $encoding);
392
+ }
393
394
395
396
$this->fetchStructure($structure);
397
398
return $this;
0 commit comments