Skip to content

Commit

Permalink
Fix an issue with plain text emails having empty body - closes #4181
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Aug 28, 2024
1 parent afaf1f5 commit aa713a3
Show file tree
Hide file tree
Showing 4 changed files with 652 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/ParseEml.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function handle()
}

$raw_header = substr($email, 0, strpos($email, "\r\n\r\n"));
$raw_body = substr($email, strlen($raw_header)+8);
$raw_body = substr($email, strlen($raw_header)+4);

$mailbox = Mailbox::find($this->option('mailbox'));

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@
"vendor/webklex/php-imap/src/Part.php",
"vendor/webklex/php-imap/src/Client.php",
"vendor/webklex/php-imap/src/Connection/Protocols/ImapProtocol.php",
"vendor/webklex/php-imap/src/Connection/Protocols/LegacyProtocol.php",
"vendor/webklex/php-imap/src/Query/Query.php",
"vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php"
]
Expand Down
Loading

0 comments on commit aa713a3

Please sign in to comment.