The enquiry reference is the real thread key
On a pricing desk, the reference number assigned when a request is logged ties every email together, not the email thread.
Twenty
Thread Q-2381Grouped by enquiry reference
Rate request, Shanghai to JEAAl Noor Trading
RE: Q-2381 ratesEastline NingboNew thread, same reference
Fwd: quote Q-2381 urgentSilkway CargoSubject changed
Q-2381 / revised validityHarbour Line AgencyAgent started a new email
Replay
Agents reply to new emails, subjects change, threads split. The reference in the subject line survives all of it.
Twenty threads by that reference first. The email thread is only a fallback.