Project

General

Profile

Actions

Feature #11461

closed

Reporters need to email code snippets to Redmine but tags are being stripped: this should be configurable.

Added by Chris Stephens almost 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

We have setup Redmine so that reporters can email things in and they are automatically added. This is great but we need reporters to send us code snippets and these are getting stripped out of the resulting description.

It would be great if 'tag stripping' or 'no tag stripping' was a preference on the 'Incoming emails' tag.

Actions #1

Updated by Chris Stephens almost 13 years ago

BTW I tried using

...
tags but this didn't work.

Thanks.

Actions #2

Updated by Chris Stephens almost 13 years ago

Oops. That was 'pre' and '/pre' tags...

Actions #3

Updated by Chris Stephens almost 13 years ago

I'm presuming that the stripping is being done by :

@plain_text_body = strip_tags(@email.body.to_s)

in mail_handler.rb and that it's kicking ion because my reporters are sending HTML emails.

I can't expect them to know to switch to Plain Text (they're marketers and totally non-technical. In fact, they hate anything technical.) so I guess what I'm suggesting might be the brute force of not stripping any tags or allowing them to add a simple equivalent of 'pre' (perhaps '---') before and after the code they need to send.

The last suggestion is not ideal either and arguably harder than switching to Plain Text but just might be something they can manage...

Any help or suggestions would be greatly appreciated!

:)

Actions #4

Updated by Go MAEDA over 6 years ago

  • Category set to Email receiving
  • Status changed from New to Closed
  • Resolution set to Duplicate

Closing as a duplicate of #13284. This issue was already fixed in Redmine 3.1.0.

Actions

Also available in: Atom PDF