I've set up imap email polling, but how can I trim off the quoted text?

Added by Nick Bolton over 10 years ago

See attached screenshot. Maybe I need to write a plugin to trim out the text? Or is this already a feature that I just need to enable?

Replies (5)

RE: I've set up imap email polling, but how can I trim off the quoted text? - Added by Nick Bolton over 10 years ago

Or maybe it's already been implemented? http://www.redmine.org/issues/4409

Hard to tell from that issue how to set it up though.

RE: I've set up imap email polling, but how can I trim off the quoted text? - Added by Nick Bolton over 10 years ago

Looking at the diff, I'm going to assume that to do this, I edit config/settings.yml and modify the mail_handler_body_delimiters setting:

mail_handler_body_delimiters:
default: '--- Reply before this line ---'

Please correct me if this is wrong.

RE: I've set up imap email polling, but how can I trim off the quoted text? - Added by Nick Bolton over 10 years ago

Ah, scratch that, I see that I edit the "Truncate emails after one of these lines" setting in "Incoming emails" on the GUI.

RE: I've set up imap email polling, but how can I trim off the quoted text? - Added by Nick Bolton over 10 years ago

Ah damn! So I figured out that the user actually must put the delimiter in by hand, so this isn't so good for users without signatures, are forgetful, or who don't know about the feature. To help this, I've edited the email footer to say the following (but I'm not confident this will help much):

You can reply directly to this email. To remove the body, end your message with: ---

(1-5/5)