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.

Comments

kyle_mathews’s picture

There'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.

mrfelton’s picture

And how do you specify what input filtert is used for email replies?

mrfelton’s picture

I can't get it working.. what do you mean about the HTML Corrector. Do I need to have that turned off?

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new3.23 KB

The 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.

kyle_mathews’s picture

mrfelton’s picture

Status: Needs review » Fixed

marking as fixed, since this has been committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pmoz’s picture

Issue summary: View changes

For 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.

mahfiaz’s picture

You 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

HTML tags.