Skip to content

Commit

Permalink
11.0.4: * [Mail/Routing] Fixed a bug in mail routing when an automati…
Browse files Browse the repository at this point in the history
…on or bot behavior overrode the `In-Reply-To:` or `References:` headers. In certain conditions, this didn't remove the inherited group/bucket from the previous parent ticket. As a result, Routing KATA or legacy mail routing rules didn't re-route the message as expected.
  • Loading branch information
jstanden committed Feb 1, 2025
1 parent 868db47 commit 9fac205
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api/app/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ private function _parseHeadersIsNew() {

$senderWorker = $this->getSenderWorkerModel();

// Reset the parent ticket and routing when we start
$this->_is_new = true;
$this->_message_id = 0;
$this->setTicketModel(null);
$this->setRouteGroup(null);

$aReferences = [];

// Append first <*> from In-Reply-To
Expand Down Expand Up @@ -423,11 +429,6 @@ private function _parseHeadersIsNew() {
}
}
}

$this->_is_new = true;
$this->_ticket_id = 0;
$this->_ticket_model = null;
$this->_message_id = 0;
}

public function getRecipients() : array {
Expand Down

0 comments on commit 9fac205

Please sign in to comment.