File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2222 "illuminate/log" : " 5.7.*" ,
2323 "illuminate/routing" : " 5.7.*" ,
2424 "illuminate/support" : " 5.7.*" ,
25+ "willdurand/email-reply-parser" : " ^2.8" ,
2526 "zbateson/mail-mime-parser" : " ^1.1"
2627 },
2728 "require-dev" : {
Original file line number Diff line number Diff line change 55use Carbon \Carbon ;
66use Illuminate \Support \Collection ;
77use Illuminate \Support \Facades \Mail ;
8+ use EmailReplyParser \EmailReplyParser ;
89use Illuminate \Contracts \Mail \Mailable ;
910use Illuminate \Database \Eloquent \Model ;
1011use ZBateson \MailMimeParser \Header \AddressHeader ;
@@ -54,6 +55,11 @@ public function text(): ?string
5455 return $ this ->message ()->getTextContent ();
5556 }
5657
58+ public function visibleText (): ?string
59+ {
60+ return EmailReplyParser::parseReply ($ this ->text ());
61+ }
62+
5763 public function html (): ?string
5864 {
5965 return $ this ->message ()->getHtmlContent ();
You can’t perform that action at this time.
0 commit comments