Woo Hoo! I can now send out messages from newly created threads and replies to same (created in VB), and the resulting email messages thread properly in the email client. I probably have missed some corner case, but so far so good! I produce the Message-ID: header and (for replies) the References: header with IDs of the form threadid.postid@forum.host.com. Minimal mods to Notify_Email_for_New_Posts (replies) and Thread_Notification_Email (new threads) hooks. A lot of "just in time learning"!!
I have to say, your code is so well structured and so complete. I have a high level of confidence in your mod working reliably and handling all of the cases it needs to. Good work!
Now to see if I can get emailintegration.php to work with the new Message-Id/References headers to thread incoming email posts correctly. If I get this working, there'll no longer need to be all that stuff in the [] in the subject line, as the thread ID is part of the new Message-Id: header, and the parent to which to thread the incoming post will be in the References: header if it's not being threaded directly to the initial post of the thread.
I'm having fun at least.
|