https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-07-19T17:25:06ZRedmineRedmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=506742013-07-19T17:25:06ZFrancisco Ramirez
<ul></ul><p>I found a problem when i was integrating VTiger and Redmine using email task in a workflow, the problem was that for some reason VTiger email make the value of project to get down one line when you leave spaces between the ":", oddly enought when I resent the same email in thunderbird it works well, I check the "original format ctrl-U" in thunderbird and I see the problem I'm describing, for example</p>
<p>project : my_dear_proyect</p>
<p>becames</p>
<p>project :<br />my_dear_proyect</p>
<p>And that was the problem, remove all spaces and perhaps you would solve your issue like I did :)</p>
<p>To the great Redmine Team, perhaps you should update your documentations with this little issue as a Note</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=506762013-07-19T18:11:21ZDeoren Moor
<ul></ul><p>Francisco Ramirez wrote:</p>
<blockquote>
<p>And that was the problem, remove all spaces and perhaps you would solve your issue like I did :)</p>
</blockquote>
<p>Our users don't include those attributes, instead we rely on the provided script to force all incoming emails that are not already tagged (we do not have problems with those) into an "unassigned" project for manual processing.</p>
<p>Thanks for the tip though.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=508532013-07-28T21:15:30ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Deoren, that would be great if you could attach a raw email for which you've got the failure.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=508702013-07-29T16:40:05ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>This queries shows that the project keyword is not properly parsed:</p>
<pre>
SELECT `projects`.* FROM `projects` WHERE `projects`.`identifier` IS NULL LIMIT 1
</pre>
<p>I've committed a fix in <a class="changeset" title="Use the default project when receiving an email with an invalid project keyword (#14491)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12067">r12067</a> so that the default is used if an invalid/malformed project keyword is present in the email. But still, I'd really like to get your failling email to see what is going wrong.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=508742013-07-29T20:28:57ZDeoren Moor
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>This queries shows that the project keyword is not properly parsed:</p>
</blockquote>
<p>Hi,</p>
<p>Sorry for the late reply. The emails that we have a problem with don't use keywords, they're sent by our users directly to a support address. Our goal with the provided scraping script was to force those emails into an <code>unassigned</code> project where we would review them and assign as needed.</p>
<p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Deoren, that would be great if you could attach a raw email for which you've got the failure.</p>
</blockquote>
<p>I don't have one at the moment and it's hard to reproduce. Once I get one (it could be a while), should I email you a copy of it? I'm hesitant to post the entire raw email here due to spam/etc.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=510092013-08-05T19:22:20ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>You can send it to me by email.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=510332013-08-06T15:22:14ZDeoren Moor
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>You can send it to me by email.</p>
</blockquote>
<p>Thanks. I'm sending the email now. Both of the emails were successfully scraped once I marked them as unread and put them back into the Inbox for a second scrape attempt. I did not include the log entries from the successful processing, but let me know and I'll send those your way also.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=510942013-08-07T19:24:35ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li></ul><p>Thanks, I've made a few attemps with the first email and they all suceeded. I really can't see why it fails sometimes. I'll merge some changes for 2.3.3 to get more debug information on this issue.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=510952013-08-07T19:31:03ZDeoren Moor
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>I really can't see why it fails sometimes.</p>
</blockquote>
<p>Thanks for looking into this. Is there any additional information I can provide about the OS or environment, or is it looking more like a Redmine specific issue? Please let me know if I can help in any other way.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=510962013-08-07T19:58:24ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>File</strong> <a href="/attachments/10216">debug_options.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/10216/debug_options.patch">debug_options.patch</a> added</li></ul><p>It looks like your project=unassigned option is lost. Can you try with the following patch applied. There's a slight change and some debug messages, thanks.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=510972013-08-07T22:40:29ZDeoren Moor
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>It looks like your project=unassigned option is lost. Can you try with the following patch applied. There's a slight change and some debug messages, thanks.</p>
</blockquote>
<p>Patch applied and Apache restarted (what this box uses). I'll let you know as soon as I spot the problem again.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=541622014-01-07T16:01:48ZDeoren Moor
<ul></ul><p>Jean-Philippe,</p>
<p>Since I've applied that patch you provided I've not seen any further emails rejected. I just wanted to post back and mention that. Thanks.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=581972014-08-21T10:17:10ZMiquel Coll
<ul></ul><p>Deoren Moor wrote:</p>
<blockquote>
<p>Jean-Philippe,</p>
<p>Since I've applied that patch you provided I've not seen any further emails rejected. I just wanted to post back and mention that. Thanks.</p>
</blockquote>
<p>I have the same problem with lost project (using redmine 2.4.5). It's been working fine until a few days ago, and now no new issues are created. I've applied the patch that Jean-Phillipe suggested and now it works. Odd. My script to get emails by pop3 is this:<br /><pre>
/usr/local/bin/rake /app/redmine-2.4.5/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" host=myhost.com port=110 ssl=0 username=redmine password=secret project=hdk unknown_user=accept folder=inbox move_on_success=redmine-processats move_on_failure=redmine-error allow_override=project,tracker,status,priority,category,assigned_to,fixed_version,start_date,due_date,estimated_hours,done_ratio unknown_user=accept no_permission_check=1 --trace >> /app/redmine-2.4.5/log/cron_imap_`date +\%Y\%m\%d`.log &2>&1
</pre></p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=587582014-09-19T07:49:57ZToshi MARUYAMA
<ul><li><strong>Target version</strong> set to <i>2.6.0</i></li></ul> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=587742014-09-20T07:58:23ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=592372014-10-20T03:51:53ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=592382014-10-20T03:52:52ZToshi MARUYAMA
<ul></ul><p>note-10 patch is not applied yet.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=592452014-10-20T06:38:18ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>note-10 patch is not applied yet.</p>
</blockquote>
<p>It is committed in trunk <a class="changeset" title="use deep_dup to prevent losing mail receiving options (#14491)" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13457">r13457</a> and 2.6-stable <a class="changeset" title="Merged r13457 from trunk to 2.6-stable (#14491) use deep_dup to prevent losing mail receiving op..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13459">r13459</a>.</p> Redmine - Defect #14491: MailHandler: Unable to determine target project (when allow_override=project and project=unassigned is used)https://www.redmine.org/issues/14491?journal_id=899592019-02-10T04:41:39ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/12937">Patch #12937</a>: mail_handler patch</i> added</li></ul>