Skip to content

Commit

Permalink
Do not check In-Reply-To header when processing @fwd instruction - cl…
Browse files Browse the repository at this point in the history
…oses #4348
  • Loading branch information
freescout-help-desk committed Nov 15, 2024
1 parent b622bbb commit b7938df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Console/Commands/FetchEmails.php
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,13 @@ public function processMessage($message, $message_id, $mailbox, $mailboxes, $ext

// If existing user forwarded customer's email to the mailbox
// we are creating a new conversation as if it was sent by the customer.
if ($in_reply_to
if (// Some mail clients to not add "In-Reply-To" header when forwarding emails.
// https://github.com/freescout-help-desk/freescout/issues/4348
//$in_reply_to
// We should use body here, as entire HTML may contain
// email looking things.
//&& ($fwd_body = $html_body ?: $message->getTextBody())
&& $body
$body
//&& preg_match("/^(".implode('|', \MailHelper::$fwd_prefixes)."):(.*)/i", $subject, $m)
// F:, FW:, FWD:, WG:, De:
&& preg_match("/^[[:alpha:]]{1,3}:(.*)/i", $subject, $m)
Expand Down

0 comments on commit b7938df

Please sign in to comment.