https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292016-01-18T23:14:51ZRedmineRedmine - Defect #21746: Truncate email not workinghttps://www.redmine.org/issues/21746?journal_id=686952016-01-18T23:14:51ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>Test passes.<br /><a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/tags/3.2.0/test/unit/mail_handler_test.rb#L960">source:tags/3.2.0/test/unit/mail_handler_test.rb#L960</a></p> Redmine - Defect #21746: Truncate email not workinghttps://www.redmine.org/issues/21746?journal_id=687182016-01-19T11:23:20ZBen Blanco
<ul></ul><p>Hi Toshi,</p>
<p>I've just looked at the <strong><code>mail_handler_test.rb</code></strong> but can't understand/see where the content of the test email for Line 960 is defined, ie. <strong><code>Content + Delimiter + Further content which should be truncated</code></strong>.</p>
<p>All I see is:</p>
<p><strong><code>issue = submit_email('ticket_with_keyword_after_delimiter.eml'</code></strong></p>
<p>Where is the content of <strong><code>ticket_with_keyword_after_delimiter.eml</code></strong> defined?</p>
<p>Also, do you have an idea of what I could do to troubleshoot further on my side?</p> Redmine - Defect #21746: Truncate email not workinghttps://www.redmine.org/issues/21746?journal_id=688572016-01-25T17:43:20ZBen Blanco
<ul></ul><p>Hi Toshi,</p>
<p>I found the <a href="https://redmine.org/projects/redmine/repository/changes/tags/3.2.0/test/fixtures/mail_handler/ticket_with_keyword_after_delimiter.eml" class="external">test email</a> ! :)</p>
<p>On Github when I had searched for <a href="https://github.com/redmine/redmine/search?utf8=%E2%9C%93&q=ticket_with_keyword_after_delimiter" class="external">ticket_with_keyword_after_delimiter</a> the <strong><code>.eml</code></strong> file doesn't show up in the results :(</p>
<p>So, I ran the test on my machine locally, <strong><code>rake test test/unit/mail_handler_test.rb</code></strong>, and I agree it passes.</p>
<p>Then I amended <strong><code>ticket_with_keyword_after_delimiter.eml</code></strong> locally, adding Gmail headers and stuff from an email that fails to truncate on my production server; and the unit test passes.</p>
<p>But on my <code>3.2.0</code> production server, incoming emails are just not getting truncated.. <em>at all</em>.</p>
<p>I decided to remove the truncation directives I had specified on the server to only put one, and actually put the same one used in the unit test: <strong><code>== DELIMITER ==</code></strong></p>
<p>Sent in several emails to the server - still no truncation.</p>
<p>Is there any logs I can look at? Or something else I can try?</p>
<p>My anticipated thanks to anyone who has suggestion(s) for me to troubleshoot this! ;)</p> Redmine - Defect #21746: Truncate email not workinghttps://www.redmine.org/issues/21746?journal_id=694912016-03-01T18:09:59ZBen Blanco
<ul></ul><p>Hi Toshi,</p>
<p>I know there's a lot of Issues open; so feel free to close this Issue, as I've found a workaround, cf. <a class="external" href="https://redmine.org/issues/5864#note-23">https://redmine.org/issues/5864#note-23</a></p>
<p>Thanks</p> Redmine - Defect #21746: Truncate email not workinghttps://www.redmine.org/issues/21746?journal_id=694962016-03-02T12:10:26ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li></ul><p>Thank you for your feedback.</p>