# Sidekiq 100% CPU usage and no mails

**URL:** https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831
**Category:** Self-hosting
**Created:** [9월 11, 2017, 6:32오후 UTC](https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831 "2017-09-11T18:32:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![GregoryS](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@GregoryS](https://meta.discourse.org/u/GregoryS)
#### Post date: [9월 11, 2017, 6:32오후 UTC](https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831/1 "2017-09-11T18:32:48Z")

</div>

Hey, we currently experience the following problem:

1. Someone tries to forward a mail to one of our user-defined mails for incoming mails.  
Now two things can happen:

2. a) This mail never reaches the inbox of the group. It is shown under `/admin/email/received` but not linked to a conversation. When I try to recover the mail via the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) (see query below), most of the fields (topic, post, error, cc\_addresses, rejection\_message) are `NULL`. The mail is not shown under `/admin/email/rejected`.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [9월 11, 2017, 6:50오후 UTC](https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831/2 "2017-09-11T18:50:48Z")

</div>

Could you send me the raw email that is failing via PM? We will look into it.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [9월 18, 2017, 11:03오전 UTC](https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831/4 "2017-09-18T11:03:36Z")

</div>

Thanks for providing a sample email.  
This should be fixed by

> <https://github.com/discourse/email_reply_trimmer/pull/12>
>
> The \`\[\\s\\S\]\` was causing problems (the matching could take forever) when none of… the backreferenced words (e.g. \`Am|schrieben\\sSie\`) was found.
> 
> I replaced it with \`.\` and the \`/m\` option and added a test.
> 
> @ZogStriP Can we release a new version if this is fine?

---

<div class="post-metadata">

### Author: ![GregoryS](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@GregoryS](https://meta.discourse.org/u/GregoryS)
#### Post date: [9월 18, 2017, 2:54오후 UTC](https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831/5 "2017-09-18T14:54:45Z")

</div>

Thank you!  
We tested it again and can confirm that the problem did not occur anymore.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [9월 14, 2023, 12:08오후 UTC](https://meta.discourse.org/t/sidekiq-100-cpu-usage-and-no-mails/69831/6 "2023-09-14T12:08:10Z")

</div>


