# Infinite loop in email\_reply\_trimmer

**URL:** <https://meta.discourse.org/t/infinite-loop-in-email-reply-trimmer/69427>\
**Category:** Development\
**Created:** [September 5, 2017, 8:06pm UTC](https://meta.discourse.org/t/infinite-loop-in-email-reply-trimmer/69427 "2017-09-05T20:06:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 5, 2017, 8:06pm UTC](https://meta.discourse.org/t/infinite-loop-in-email-reply-trimmer/69427/1 "2017-09-05T20:06:55Z")

</div>

this is a 🐛, but I think only developers will care about it. There’s an infinite loop in one of these replacements. I found it while running the `nabble` importer. I banged at it a bit before just commenting it out to solve my immediate problem.

It looks like @zogstrip understands this. It seems that sometimes 183 gets stuck. I was wondering why these 170K messages need an entire holiday weekend to import.

> <https://github.com/discourse/email_reply_trimmer/blob/main/lib/email_reply_trimmer.rb#L175>

---

_[View the full topic](https://meta.discourse.org/t/infinite-loop-in-email-reply-trimmer/69427)._
