thoughtbot / griddler

Simplify receiving email in Rails (deprecated)
http://griddler.io/
MIT License
1.38k stars 199 forks source link

Slow performance when parsing specific text with Griddler::EmailParser.extract_reply_body #309

Closed cristianc-ty closed 4 months ago

cristianc-ty commented 5 years ago

Hello,

First and foremost thank you for creating such an awesome project for email processing.

The reason why this ticket is created is because there is a particular email that in our production system (using griddler 1.5.2) manifests really slow 80s - 150s execution times for Griddler::EmailParser.extract_reply_body depending on the machine.

Since this can be theoretically used for denial of service attacks it is preferable to hand over the script that consistently reproduces the problem in a non public channel.

Thanks for letting me know how this issue can proceed.

Regards, Cristian

cristianc-ty commented 5 years ago

Create PR https://github.com/thoughtbot/griddler/pull/310 with a possible fix.