When you reply to an email (using reply to all), the email gets added as a comment on the original node, which is great. But, the comment includes the entire thread history, so you end up with comments that look like this:
Can you get him to pimp mine too?
On 25 Jan 2011, at 21:30, Mr X wrote:
> But I may want you to pimp your 2CV first...
>
> --
> Full post: http://www.example.com/discussion/trade-my-2cv-your-range-rover
> Manage my subscriptions: http://www.example.com/og_mailinglist/subscriptions
> Stop emails for this post: http://www.example.com/og_mailinglist/unsubscribe/50
And as the discussion continues, the length of these comments increases, making it increasingly more difficult to read the thread from the website.
Can it be set to stip out the thread history when posting as a comment somehow? http://drupal.org/project/mailcomment has an option that attempts to remove some stuff like this. I know it can do the 'On 25 Jan 2011, at 21:30, Mr X wrote:' lines.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1044490-og_mailinglist-remove-thread-history.patch | 3.23 KB | mrfelton |
Comments
Comment #1
mrfelton commentedSe http://drupalcode.org/viewvc/drupal/contributions/modules/mailcomment/ad...
Comment #2
kyle_mathews commentedThere's actually a provided input filter which hides (not deletes) the thread history. See the INSTALL.txt document starting at "To hide quoted parts of email messages, enable the provided input filter..." for how to set that up. Tell me if you have any problems. Also a word of note, the HTML Corrector filter will kill the thread history. Need to add that.
Comment #3
mrfelton commentedAnd how do you specify what input filtert is used for email replies?
Comment #4
mrfelton commentedI can't get it working.. what do you mean about the HTML Corrector. Do I need to have that turned off?
Comment #5
mrfelton commentedThe problem is todo with newlines, which og_mailinglist currently assumes is the \n character. This is not always the case, it could be \r or \r\n. I resolved this. Also, I added a couple more regex expressions for different formats of reply quote style.
Patch attached.
Comment #6
kyle_mathews commentedFix commited unmodified. Thanks! http://drupalcode.org/project/og_mailinglist.git/commit/9d6d1f6
Comment #7
mrfelton commentedmarking as fixed, since this has been committed.
Comment #9
pmoz commentedFor anyone else having issues more recently with hiding quoted text, it did not function for me using Plain text.
I had to make the changes on the Filtered HTML format and set that as the default in admin/config/group/mailinglist/content_types.
Comment #10
mahfiaz commentedYou could strip all HTML before this filter or remove the quoted parts entirely, but hiding requires HTML.
From INSTALL.txt:
* To hide quoted parts of email messages, enable the provided input filter "Hide quoted text from comments created via email" at admin/settings/filter and rearrange the filters to set this one first. Note, that for this to work, your input filter(s) will need to allow both the and