How are emails and conversations threaded?

Conversations are threaded by the "In-Reply-To" header on emails and subject line matching is used as a fall back. Therefore, subject line matching is only good for two weeks, at which point, Reamaze unthreads the conversation and the sender can start a new thread with the same subject line essentially.