# Vacation/Out of office emails still processed as new replies

**URL:** <https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695>\
**Category:** Bug\
**Created:** [2016年七月23日 20:57 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695 "2016-07-23T20:57:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)\
**Post date:** [2016年七月23日 20:57 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/1 "2016-07-23T20:57:56Z")

</div>

Continuing the discussion from [Out of office replies to Digests are still being processed as new topics](https://meta.discourse.org/t/out-of-office-replies-to-digests-are-still-being-processed-as-new-topics/25017/19):

This is still happening. See [this reply](https://experts.feverbee.com/t/what-did-you-learn-this-week/2649/14?u=purldator) @ FeverBee.

---

<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:** [2016年七月24日 00:11 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/2 "2016-07-24T00:11:52Z")

</div>

Sure @zogstrip can have a look. It’s usually a wildly misconfigured mail client.

---

<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:** [2016年八月1日 22:05 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/3 "2016-08-01T22:05:40Z")

</div>

Since that email has no header indicating it was auto-generated, that’s unfortunately the best I can do

[https://github.com/discourse/discourse/commit/ca4c939e9a2d6c202ab84841d255f00570f02f45](https://github.com/discourse/discourse/commit/ca4c939e9a2d6c202ab84841d255f00570f02f45)

---

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [2016年八月1日 22:41 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/4 "2016-08-01T22:41:18Z")

</div>

I don’t think it would hurt to add

```http
X-Auto-Response-Suppress: All

```

to the headers of outgoing mail. Github and zendesk both seem to do that.

---

<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:** [2016年八月1日 22:42 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/5 "2016-08-01T22:42:47Z")

</div>

Sure, PRs are welcome 😉

---

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [2016年八月1日 23:04 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/6 "2016-08-01T23:04:38Z")

</div>

Do you take patches?

```diff

--- lib/email/message_builder.rb.old 2016-08-01 15:58:26.397393755 -0700
+++ lib/email/message_builder.rb 2016-08-01 16:00:24.295659384 -0700
@@ -139,6 +139,9 @@
       result['X-Discourse-Post-Id'] = @opts[:post_id].to_s if @opts[:post_id]
       result['X-Discourse-Topic-Id'] = @opts[:topic_id].to_s if @opts[:topic_id]
 
+ # auto-replies just need extra work later to ignore
+ result['X-Auto-Response-Suppress'] = 'All'
+
       if allow_reply_by_email?
         result['X-Discourse-Reply-Key'] = reply_key
         result['Reply-To'] = reply_by_email_address

```

Alternatively it looks like the code would accept just a config change:

```diff
--- config/site_settings.yml.old 2016-08-01 16:02:30.394083505 -0700
+++ config/site_settings.yml 2016-08-01 16:03:00.474661911 -0700
@@ -556,7 +556,7 @@
   disable_digest_emails:
     default: false
     client: true
- email_custom_headers: 'Auto-Submitted: auto-generated'
+ email_custom_headers: 'Auto-Submitted: auto-generated | X-Auto-Response-Suppress: All'
   email_subject: '[%{site_name}] %{optional_pm}%{optional_cat}%{topic_title}'
   reply_by_email_enabled:
     default: false

```

---

<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:** [2016年八月1日 23:57 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/7 "2016-08-01T23:57:55Z")

</div>

That looks legit:

> <https://serverfault.com/questions/462724/how-to-avoid-automatic-responses-from-putting-our-mail-server-in-a-loop/462914#462914>

---

<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:** [2016年八月3日 09:03 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/8 "2016-08-03T09:03:24Z")

</div>

We’d rather take pull request **with tests**. Anyway, I pushed the fix. Thanks for suggesting that 👍

[https://github.com/discourse/discourse/commit/b08ab829b80794edb9fdb987d394c84a4ba3417e](https://github.com/discourse/discourse/commit/b08ab829b80794edb9fdb987d394c84a4ba3417e)

---

<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:** [2016年八月3日 09:03 UTC](https://meta.discourse.org/t/vacation-out-of-office-emails-still-processed-as-new-replies/47695/9 "2016-08-03T09:03:39Z")

</div>


