Finally finished it, this got more involved than I originally thought :ermm: , I have tested it on my test forum and it's all working. It needs some real life testing now with someone using mailing lists - thank you BustaCap.
It works pretty much as I described it few posts back:
It searches by references first, if it can't find one or there isn't a match it checks if there is at least one "Re: " in the subject line, which gives us a fair idea that it should belong to an existing thread.
It then will search the subject titles of the existing threads, and if there is a match, select the most recent one and insert it the post into it.
If there is no match, it creates a new thread as normal.
* I have removed the attachment pending a bug removal *
|