Closed (fixed)
Project:
OG Mailinglist
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 May 2010 at 23:52 UTC
Updated:
20 Aug 2012 at 19:20 UTC
Essentially what we'll need to do is when we detect that a new email is part of an existing discussion according to the in-reply-to or reference headers to then compare the subject of the incoming email to the original node title. If it's significantly different, this means the person changed the subject line intentionally meaning to start a new discussion.
We'll use http://php.net/manual/en/function.levenshtein.php to compare the strings.
Another note, this means upon creating new nodes that we should strip out the in-reply-to headers and the reference header so that email clients won't thread the new discussion with the previous one it was forked from.
Comments
Comment #1
tobias commentedAnother approach to this would be to have a manual link for group managers to fork a comment into a new node. This is functionality I seem to recall seeing in some forum or other.
Cheers,
Tobias
Comment #2
kyle_mathews commentedThat's an interesting idea but probably not one that ogm will handle. That would belong as a forum submodule or something.
Comment #3
kyle_mathews commentedFixed with http://github.com/KyleAMathews/og_mailinglist/commit/292c29a8201031826a8...
Comment #4
tobias commentedMaybe the comment mover module: http://drupal.org/project/comment_mover
Comment #5
kyle_mathews commentedWe cross posted. :) Moving status back to fixed.
Comment #7
tobias commentedIs it possible to make this an optional feature? I think it's causing problems on my site, where replies are very often being interpreted as being new threads and are starting new nodes instead of adding comments. Or maybe my problem is a different bug?
In any case I'd rather the threads be kept together rather than making assumptions about when someone is forking a thread.
Cheers,
Tobias