https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-07-31T19:11:04ZRedmineRedmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=400892012-07-31T19:11:04ZWilliam Roush
<ul><li><strong>File</strong> <a href="/attachments/8034">defect-11552.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8034/defect-11552.patch">defect-11552.patch</a> added</li></ul><p>Confirmed, this test fails when the user has a dash in their first name.</p>
<p>However assigning to the user "dashtest" works fine (the user's log in name).</p> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=400902012-07-31T19:14:00ZWilliam Roush
<ul></ul><p>William Roush wrote:</p>
<blockquote>
<p>Confirmed, this test fails when the user has a dash in their first name.</p>
<p>However assigning to the user "dashtest" works fine (the user's log in name).</p>
</blockquote>
<p>Actually let me correct myself, the problem is that there is a space in the first name, I think Redmine is splitting on that space, and fails to look up the user.</p>
<p>Setting the name to "IS- Operations" works fine.</p>
<p>So I think it's doing first name "IS", last name "- Operations".</p> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=400912012-07-31T19:27:09ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><blockquote>
<p>I think Redmine is splitting on that space, and fails to look up the user</p>
</blockquote>
<p>You're perfectly right.</p> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=400922012-07-31T19:31:04ZWilliam Roush
<ul></ul><p>Alright, here is a patch that adds a test that replicates the issue and a fix (Redmine 2.0 default branch).</p>
<p>I added the last combined check as a last-ditch check (re-iteration), I'm a bit worried about catching other names by accident so I only want to grab it if all other name look-ups fail first.</p>
<p>Of course the devs can move that somewhere else if they think that isn't a problem.</p> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=400932012-07-31T19:31:12ZWilliam Roush
<ul><li><strong>File</strong> <a href="/attachments/8036">defect-11552.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8036/defect-11552.patch">defect-11552.patch</a> added</li></ul> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=400992012-07-31T20:30:21ZKameron Hott
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>Thank you, that patch did fix it. The email works now with IS - Operations. Have a great day and thank you for the very quick fix!!</p> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=401052012-07-31T21:38:12ZWilliam Roush
<ul></ul><p>Edit: sorry, scratch that, I had a filter issue.</p> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=401062012-07-31T21:43:31ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Target version</strong> set to <i>2.1.0</i></li></ul> Redmine - Defect #11552: MailHandler does not match assignee name with spaceshttps://www.redmine.org/issues/11552?journal_id=405532012-08-26T09:05:44ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>redmine:email:receive_imap assignee name with a - fails.</i> to <i>MailHandler does not match assignee name with spaces</i></li><li><strong>Category</strong> set to <i>Email receiving</i></li><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</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>Fixed in <a class="changeset" title="MailHandler: Match assignee on the full display name (#11552)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/10236">r10236</a> with a slightly different approach, thanks for pointing this out.</p>