This is more of an irritation than a bug.

When I click on "Reply" in Thunderbird the top of my message pane looks like this:

Forum Manager wrote:
> ((( Reply ABOVE this LINE to POST a COMMENT )))
> Greetings Forum Manager,

The result is that, unless I remember to delete the offending words, every message that I send by email appears on the Forum ending with the sentence: Forum Manager wrote:

Other Mail Clients add even more text in this position making it pretty difficult to use the Reply Text technique to produce 'clean' Forum posts. I have decided to use the facility to change the Reply text to: "To reply to this post by email, please click on 'Reply', delete all text from the new message pane, compose your reply on a clean page and click on Send."

Comments

davidteall’s picture

I forgot. I had to shorten the text as the box only allows a limited number of characters. I ended up with:

(((To reply to this post by email, click on Reply, delete all text from the message pane, compose your reply & click on Send)))

My site is used by some folk with limited computer skills so I have to spell things out!.

sagannotcarl’s picture

Assigned: davidteall » Unassigned

I have the same issue. Is there an input filter or something out there that handles this?

If not does anyone have a lead on the best way to do it, I might have some energy to put towards making one.

Thanks!

ps. MedMan, did you mean to assign this to yourself? Are you working on it?

Ian Ward’s picture

This is related to http://drupal.org/node/301769

I have a new series of regular expressions that will attempt to clean this from the message. I have this in dev code which I'll roll into the dev version for testing. I like the idea of an input filter as opposed to actually removing and throwing out parts of the message (it does this now but just for responses coming from mail.app, at the moment). The input filter could replace all the quoted text (the gunk put in by the mail client as well as this "Reply" line) with a "Show quoted text" collapsible js line, just like in Gmail.

Ian Ward’s picture

Status: Active » Fixed

This is fixed in the latest commit to the dev version. I've implemented an input format that will replace anything that mail2web thinks should be stripped with a collapsed fieldset at the end of the comment - much like "show quoted text" in gmail's client. This ensures no accidental data loss from over-aggressive or inaccurate regexing for all the corner cases and different mail cilents.

Please test on a dev site if you're able. I'm aiming for new betas w/in the next week or two.

Ian

sagannotcarl’s picture

Great, thanks Ian!

I'll check this out now and let you know what I find.

sagannotcarl’s picture

Status: Fixed » Needs work

Trying out the new code from those commits works almost perfectly for me.

It creates the fieldset and sticks the properly removed text in it.

The one issue I'm having is that the removed text is still included in the subsequent notifications. For example, the following text appears in the email I got after someone commented on my post:

- Show removed text -
On Oct 9, 2008, at 11:26 AM, [... etc.]

The other request I would make is that the fieldset get a new css identifier so that it can be styled differently, something like class="removed-text" or something.

Thanks again for getting this out!
Colin

Ian Ward’s picture

Status: Needs work » Needs review

Thanks for reporting this. You can now test out the dev version available for download on the project page. There is an INSTALL.txt file which has very brief instructions about the input formats you need to use - one is used on the comments, and there is now an additional input format which is used on the messages sent out by the messaging module. Let me know how it goes.

Thanks
Ian

sagannotcarl’s picture

Version: 5.x-1.0-beta1 » 5.x-1.x-dev
Status: Needs review » Fixed

The dev version seems to be working great for me.

It creates the fieldset and sticks the properly removed text in it, and seems to properly strip out the "show removed text" from subsequent replies.

Also, thanks for adding the class. My thought is that I can either hide it all together when I'm confident that it's not stripping out too much, or at least make is less obtrusive.

Thanks!
Colin

sagannotcarl’s picture

Status: Fixed » Active

I have another version of the "Original Message" text that isn't being caught currently. I looked at the code but wasn't quite sure if could just insert another example in there.

Yahoo webmail spits out something like this:

----- Original Message ----
From: drupalsiteuser
To: xxxxxx@yahoo.com
Sent: Tuesday, November 11, 2008 6:40:42 PM

The Outlook version you have in there is very similar, but this one only have 4 dashes after as well as spaces before and after the words (Outlook: "-----Original Message-----", Yahoo: "----- Original Message ----".

If you could point me in the right direction I'd be happy to fix this myself, but I'm not so good with the regex and I couldn't quite figure it out.

Ian Ward’s picture

Status: Active » Fixed

hi Colin, I've gotten rid of the filters and there will be a new release by the end of this week. Please see my comment here http://drupal.org/node/349730#comment-1223209 ... in the future someone could write a plugin that does the filter trick again. I will mark this to fixed. If you have more ideas about how to better handle this please open a feature request and we can discuss.

thanks
Ian

Status: Fixed » Closed (fixed)

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

Ian Ward’s picture

Project: Mail to Web » Mail Comment

Switch to mailcomment project. Mail2web is now known as "mailcomment" due to a trademark issue with the name mail2web.