# Should error and message emails start with the same prefix?

**URL:** <https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893>\
**Category:** Support\
**Tags:** email\
**Created:** [March 28, 2015, 12:29am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893 "2015-03-28T00:29:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [March 28, 2015, 12:29am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/1 "2015-03-28T00:29:25Z")

</div>

Continuing the discussion from [Clarification on site\_domain\_name and site\_name](https://meta.discourse.org/t/clarification-on-site-domain-name-and-site-name/18136):

> [@watchmanmonitor](#):
>
> Is title \> site\_name ?

Many error emails don’t seem to do so otherwise, and I want all my forum related email to go to one folder. (pending member request, etc)

I’m on the fence about the error emails.. if they do contain [Watchman Community] then it’s clear where they came from. If they don’t have the same prefix, it may not be clear where the error email was sent from.

Should the email saying that a message bounced also start with the same [Site Title] as normal emails?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [March 28, 2015, 2:04am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/2 "2015-03-28T02:04:34Z")

</div>

Shouldn’t your local mail routing rules be looking at the return email address and domain? That seems more logical to me, and will work regardless of the title.

---

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [March 28, 2015, 2:36am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/3 "2015-03-28T02:36:36Z")

</div>

Maybe, but this isn’t really about the emails I get from the forum, it’s about errors my users might get if their posts go wrong.

I’ve always made rules based on subject.. but I’m looking for what the consensus would do, if asked.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [March 28, 2015, 4:10am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/4 "2015-03-28T04:10:12Z")

</div>

Oh, I see. @techapj can you make sure the email reply error titles include the site name, respecting the layout string?

---

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [March 28, 2015, 5:35am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/5 "2015-03-28T05:35:47Z")

</div>

I just fixed the inbound email on my hosted forum. I tested and a failed email comes FROM a different address than normal forum emails.

in our case, good message emails come from mail+[key]@domain but failures come from support@domain. That in and of themselves is enough to make it clear the email is from the forum.

The underlying question is - should - failure emails be setup to get swept into the same actions as normal emails? If they should remain in someone’s inbox, then no change is really needed.

If they should be routed along with the rest of the forum email, then having the reply titles respect the subject rules would be a good change.

---

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [March 31, 2015, 3:01am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/6 "2015-03-31T03:01:12Z")

</div>

I’ve thought about this a lot.

The resolve is the these error emails should not follow current filters (should not be prefixed with the `email_prefix`. (We don’t want them filtered away, since the emails didn’t work.)

Emails such as Email rejects already come from a different address, and [probably] don’t have the message header such as `list:"category.site-fqdn"`

> <https://github.com/discourse/discourse/blob/tests-passed/config/locales/server.en.yml#L1612-L1613>

A better plan might be to call attention to the email with a subject line prefix like [Notice] or [Action Required]

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [April 2, 2015, 11:59am UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/7 "2015-04-02T11:59:34Z")

</div>

Fixed via

[https://github.com/discourse/discourse/pull/3321](https://github.com/discourse/discourse/pull/3321)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [April 2, 2015, 12:38pm UTC](https://meta.discourse.org/t/should-error-and-message-emails-start-with-the-same-prefix/26893/8 "2015-04-02T12:38:00Z")

</div>


