# Send rejection email for unrecognised errors

**URL:** <https://meta.discourse.org/t/send-rejection-email-for-unrecognised-errors/64556>\
**Category:** Feature\
**Created:** [2017 年 6 月 15 日午後 2:33 UTC](https://meta.discourse.org/t/send-rejection-email-for-unrecognised-errors/64556 "2017-06-15T14:33:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Post date:** [2017 年 6 月 15 日午後 2:33 UTC](https://meta.discourse.org/t/send-rejection-email-for-unrecognised-errors/64556/1 "2017-06-15T14:33:19Z")

</div>

Yesterday we had an email to Discourse which errored out while processing with:

`Unrecognized error type (RuntimeError: ) when processing incoming email`

We only found out about this because the user looked on the site for their reply, couldn’t find it, and alerted me. While it did appear in the logs, I don’t check them particularly regularly.

The simplest ‘solution’ to this I see is sending a rejection message to users if there’s been any error during processing, telling them to try again or alert an admin.

Looking at the source, it seems like not sending a message when there’s an unrecognised error is intentional:

> <https://github.com/discourse/discourse/blob/main/lib/email/processor.rb#L36-L88>

While I understand not giving specific information about the error isn’t really possible, Discourse should at least let the user know their email hasn’t been posted so they don’t naively assume it has.

---

_[View the full topic](https://meta.discourse.org/t/send-rejection-email-for-unrecognised-errors/64556)._
