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 4e70651 commit 96feaa2Copy full SHA for 96feaa2
src/InboundEmail.php
@@ -3,6 +3,7 @@
3
namespace BeyondCode\Mailbox;
4
5
use Carbon\Carbon;
6
+use EmailReplyParser\EmailReplyParser;
7
use Illuminate\Support\Collection;
8
use Illuminate\Support\Facades\Mail;
9
use Illuminate\Contracts\Mail\Mailable;
@@ -54,6 +55,11 @@ public function text(): ?string
54
55
return $this->message()->getTextContent();
56
}
57
58
+ public function visibleText(): ?string
59
+ {
60
+ return EmailReplyParser::parseReply($this->text());
61
+ }
62
+
63
public function html(): ?string
64
{
65
return $this->message()->getHtmlContent();
0 commit comments