https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292015-04-06T14:31:05ZRedmineRedmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628592015-04-06T14:31:05ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/19322">Patch #19322</a>: Allow to ignore auto reply messages from Exchange server</i> added</li></ul> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628652015-04-06T14:34:31ZToshi MARUYAMA
<ul><li><strong>Target version</strong> set to <i>3.0.2</i></li></ul> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628682015-04-06T14:36:46ZToshi MARUYAMA
<ul></ul><p>I don't know about Exchange, should <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Allow to ignore auto reply messages from Exchange server (Closed)" href="https://www.redmine.org/issues/19322">#19322</a> be reverted?</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628702015-04-06T14:56:22ZMoritz Schepp
<ul></ul><p>... well the header x-auto-response-suppress is only used by exchange. As far as I understand the docs, the header doesn't identify auto-reponses. It has been added as an exclusion pattern to the mail_handler for <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Ignore out-of-office incoming emails (Closed)" href="https://www.redmine.org/issues/10607">#10607</a>. Afaik, it should'nt have been.</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628712015-04-06T15:00:03ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li><li><strong>Target version</strong> deleted (<del><i>3.0.2</i></del>)</li></ul><p>I think <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Allow to ignore auto reply messages from Exchange server (Closed)" href="https://www.redmine.org/issues/19322">#19322</a> is correct because Redmine <a class="version" href="https://www.redmine.org/versions/92">3.0.1</a> ignores only "oof" and "all".<br /><a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/tags/3.0.1/app/models/mail_handler.rb#L76">source:tags/3.0.1/app/models/mail_handler.rb#L76</a><br /><pre><code class="ruby syntaxhl"> <span class="vc">@@ignored_emails_headers</span> <span class="o">=</span> <span class="p">{</span>
<span class="s1">'X-Auto-Response-Suppress'</span> <span class="o">=></span> <span class="sr">/(oof|all)/</span><span class="p">,</span>
<span class="s1">'Auto-Submitted'</span> <span class="o">=></span> <span class="sr">/\Aauto-(replied|generated)/</span><span class="p">,</span>
<span class="s1">'X-Autoreply'</span> <span class="o">=></span> <span class="s1">'yes'</span>
<span class="p">}</span>
</code></pre></p>
<p><a class="external" href="http://serverfault.com/questions/277515/how-does-exchange-2010-prevent-auto-reply-loop">http://serverfault.com/questions/277515/how-does-exchange-2010-prevent-auto-reply-loop</a></p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628722015-04-06T15:14:44ZMoritz Schepp
<ul></ul><p>... so the header sais: "do not send auto replies to this email", it doesn't say "this email is an auto reply". Exchange seems to add the header to auto replies (that's what the second answer on serverfault sais and it makes sense to prevent loops). That doesn't mean that the header's presence is an indication for an auto reply. For example, Exchange adds the header to all mails sent to distribution list members (makes sense because some recipient might always be on holiday and the sender usually doesn't care). Those would then be filtered by redmine.</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628732015-04-06T16:29:32ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>New</i></li><li><strong>Target version</strong> set to <i>3.0.2</i></li></ul> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628742015-04-06T18:12:04ZSebastian Paluch
<ul><li><strong>File</strong> <a href="/attachments/13439">mailer.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/13439/mailer.patch">mailer.patch</a> added</li></ul><p>well.. I dig a bit more on this and it seems that Moritz is right, not only the patch <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Allow to ignore auto reply messages from Exchange server (Closed)" href="https://www.redmine.org/issues/19322">#19322</a> is wrong but the <a href="https://msdn.microsoft.com/en-us/library/ee219609%28v=exchg.80%29.aspx" class="external">X-Auto-Response-Suppress</a> header should not be there in first place.</p>
<p><a href="https://www.jitbit.com/maxblog/18-detecting-outlook-autoreplyout-of-office-emails-and-x-auto-response-suppress-header/" class="external">Detecting Outlook autoreply/out-of-office emails and X-Auto-Response-Suppress header</a><br /><a href="http://stackoverflow.com/questions/1027395/detecting-outlook-autoreply-out-of-office-emails" class="external">Detecting Outlook autoreply/out-of-office emails</a></p>
<p>Instead the outgoing emails, send by Redmine, should have the header set correctly.</p>
<p>Currently, the only related headers in outgoing emails that are set are (per Redmine 3.0.0):<br /><pre>
X-Auto-Response-Suppress: OOF
Auto-Submitted: auto-generated
</pre><br />This results in suppressing only out-of-office responses but all the rest (e.g. delivery reports) are coming in. <br />It should be:<br /><pre>
X-Auto-Response-Suppress: All
Auto-Submitted: auto-generated
</pre><br />I my case the Redmine's mail box was full of undelivered reports (thousands of emails) that <em>mail_handler</em> was not handling correctly. Reverting <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Allow to ignore auto reply messages from Exchange server (Closed)" href="https://www.redmine.org/issues/19322">#19322</a> and applying attached <a class="attachment" href="https://www.redmine.org/attachments/13440">mailer.patch</a> should do the work.</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=628752015-04-06T18:17:37ZSebastian Paluch
<ul><li><strong>File</strong> <a href="/attachments/13440">mailer.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/13440/mailer.patch">mailer.patch</a> added</li></ul><p>New patch doing both, removing the header from <em>mail_handler</em> and changing it in <em>mailer</em>.</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=629122015-04-08T09:24:10ZMoritz Schepp
<ul></ul><p>Guys, thanks for looking into this!</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=630002015-04-11T07:15:56ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Mail handler and x-auto-response-suppress</i> to <i>Mail handler should not ignore emails with x-auto-response-suppress header</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Patch committed in <a class="changeset" title="Mail handler should not ignore emails with x-auto-response-suppress header (#19558). Patch by Se..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/14159">r14159</a>, thanks for digging into this.</p> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=633492015-04-25T07:40:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul> Redmine - Defect #19558: Mail handler should not ignore emails with x-auto-response-suppress headerhttps://www.redmine.org/issues/19558?journal_id=846282018-04-24T15:49:06ZFred B
<ul></ul><p>I don't get this patch.. It turn the suppression from Out of Office to All?</p>
<p>In mailer.rb :</p>
<pre>
X-Auto-Response-Suppress' => 'OOF' </pre>
<p>Become<br /><pre>'X-Auto-Response-Suppress' => 'All'</pre></p>
</pre><br />It should do the opposite. Only suppress OOF and turn the other mails into issues?
<p>P.S. I came to this patche because on Redmine 2.4.3 some of the forwarded email are ignored.</p>