Project

General

Profile

Incoming Emails and Duplication of Original Message

Added by Sam Bo almost 14 years ago

Is anyone else having problems with incoming emails and the duplication of messages.. The only way I can get this to work is to force everyone to use a standardized signature (ie Regards,) so I know where to cut off a message otherwise the entire email thread is added as a comment.. Am I missing something? Any suggestions for me on how to get this to work without a signature update.

Let me give some details when I hit reply my email does the following:
---------------------------

Here is my reply to the issue........

On Fri, Jul 2, 2010 at 3:48 PM, <> wrote:

The original issue text is here..


On the issue in redmine, I'll get something like this all thrown together:

Here is my reply to the issue.... On Friday, Jul 2 2010 at 3:48 PM, <> wrote: The original issue text is here.


Replies (4)

RE: Incoming Emails and Duplication of Original Message - Added by Felix Schäfer almost 14 years ago

Educate your users to delete the quote, or even better to quote right (i.e. bottom-replies and quote only the part you reply to).

Anyway, there's no better way than to cut on a certain line for now.

RE: Incoming Emails and Duplication of Original Message - Added by Sam Bo almost 14 years ago

I haven't even rolled this out yet as I was just personally testing, but I know what will end up happening.. To your point, it will be an educational process.

Thanks for the reply.

RE: Incoming Emails and Duplication of Original Message - Added by Sam Bo almost 14 years ago

I ended up just changing the regex that does the truncation. With the word list for signatures and the ability to take care of the google hosted email replies it should work.. fingers crossed.

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

    (1-4/4)