Project

General

Profile

Actions

Feature #5864

closed

Regex Text on Receiver Email

Added by Sam Bo over 14 years ago. Updated over 7 years ago.

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

0%

Estimated time:
Resolution:
Fixed

Description

Modify the "Truncate Email after these lines" section or add a new section that allows a regex to be added.. This would make the truncation of emails much easier and the ability for anyone to support their specific requirements for truncating after the email system replied to text ("On Wed June 24th 2010 Johnny wrote:" ).

This is related to #2852

I modified the controller for the mail hander to look for both the text truncation and hard coded the reply line that my email system uses.. It could easily be adapted to use a similar approach and regex check multiple expressions to handle different scenarios.

My Hard Coded Example:
regex = Regexp.new("(^(#{ delimiters.join('|') })\s*[\r\n].*)|(On (.*)wrote:[\r\n].*)", Regexp::MULTILINE)

A proposed generic pseudo-code controller example:
regex = Regexp.new("(^(#{ delimiters.join('|') })\s*[\r\n].*)|(#{ delimitersregex.join('|') })", Regexp::MULTILINE)


Files

redmine_regex.png (23.6 KB) redmine_regex.png Ben Blanco, 2016-01-27 16:09
redmine_regex_incoming_emails.png (20.7 KB) redmine_regex_incoming_emails.png Ben Blanco, 2016-02-15 18:52
allow_regex_delimiters.patch (3.02 KB) allow_regex_delimiters.patch Marius BĂLTEANU, 2016-10-19 23:50
regex_delimiter_setting.png (57.8 KB) regex_delimiter_setting.png Marius BĂLTEANU, 2016-11-23 21:49
allow_regex_delimiters_v2.patch (5.21 KB) allow_regex_delimiters_v2.patch Marius BĂLTEANU, 2016-11-23 21:50
allow_regex_delimiters_v3.patch (9.29 KB) allow_regex_delimiters_v3.patch Marius BĂLTEANU, 2016-12-11 18:23
make_text_clickable.patch (1.41 KB) make_text_clickable.patch Marius BĂLTEANU, 2016-12-15 22:34

Related issues

Related to Redmine - Patch #11684: Truncate incoming emailsClosed

Actions
Has duplicate Redmine - Patch #10069: delimiter improvmentsClosed

Actions
Actions

Also available in: Atom PDF