File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 22
22
"illuminate/log" : " 5.7.*" ,
23
23
"illuminate/routing" : " 5.7.*" ,
24
24
"illuminate/support" : " 5.7.*" ,
25
+ "willdurand/email-reply-parser" : " ^2.8" ,
25
26
"zbateson/mail-mime-parser" : " ^1.1"
26
27
},
27
28
"require-dev" : {
Original file line number Diff line number Diff line change 5
5
use Carbon \Carbon ;
6
6
use Illuminate \Support \Collection ;
7
7
use Illuminate \Support \Facades \Mail ;
8
+ use EmailReplyParser \EmailReplyParser ;
8
9
use Illuminate \Contracts \Mail \Mailable ;
9
10
use Illuminate \Database \Eloquent \Model ;
10
11
use ZBateson \MailMimeParser \Header \AddressHeader ;
@@ -54,6 +55,11 @@ public function text(): ?string
54
55
return $ this ->message ()->getTextContent ();
55
56
}
56
57
58
+ public function visibleText (): ?string
59
+ {
60
+ return EmailReplyParser::parseReply ($ this ->text ());
61
+ }
62
+
57
63
public function html (): ?string
58
64
{
59
65
return $ this ->message ()->getHtmlContent ();
You can’t perform that action at this time.
0 commit comments