Tweaking patterns in email_reply_trimmer

Hey, @gerhard. I’m still doing an import with a bunch of mailing lists sucked in to nabble.

There are a bunch of posts that are announcements and have a line of dashes near the top, so the whole post gets truncated by trim since the line is a delimiter:

https://github.com/discourse/email_reply_trimmer/blob/master/lib/email_reply_trimmer.rb#L42-L47

I think I’m just going to edit out those lines for this import and move on with my life.

But is there a better way?

1 Like

Remove that line before passing the email to the importer?

4 Likes

Well that’s hilariously obvious. :blush: