Skip to content

Commit

Permalink
Add alternative reply separation method - closes #3648
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Jan 5, 2024
1 parent a5f4908 commit c55d94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/FetchEmails.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public function processMessage($message, $message_id, $mailbox, $mailboxes, $ext
$body = $message->getTextBody() ?? '';
$body = htmlspecialchars($body);
}
$body = $this->separateReply($body, $is_html, $is_reply, !$message_from_customer, ($message_from_customer ? $prev_thread->getMessageId($mailbox) : ''));
$body = $this->separateReply($body, $is_html, $is_reply, !$message_from_customer, (($message_from_customer && $prev_thread) ? $prev_thread->getMessageId($mailbox) : ''));

// We have to fetch absolutely all emails, even with empty body.
// if (!$body) {
Expand Down

0 comments on commit c55d94d

Please sign in to comment.