Project

General

Profile

allow_override tracker, priority not working when creating issues from e-mails

Added by Hannah R over 9 years ago

Hi,

first of all: I'm using redmine 2.5.2.stable.13360, ruby 2.0.0p384, rails 3.2.19 on Ubuntu Server 14.04, mySQL

I'm using a custom script (on our mail server there is no ruby, so we translated the rdm-mailhandler.rb into a perl-script) to create issues from emails.

What works: I can create issues manually.
I have an email redmine.eml:

Delivered-To: <myname@mycompany>
Return-Path: <myname@mycompany>
Received: from myserver ([ip.ip.ip.ip])
        by imap.mycompany (Dovecot) with LMTP id #############
        for <myname@mycompany>; Wed, 10 Sep 2014 10:18:06 +0200
Delivery-date: Wed, 10 Sep 2014 10:18:06 +0200
Received: from mycomputer ([ip.ip.ip.ip])
        by myserver with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128)
        (Exim 4.75)
        (envelope-from <myname@mycompany>)
        id ###########
        for myname@mycompany; Wed, 10 Sep 2014 10:18:06 +0200
Message-ID: <##################>
Date: Wed, 10 Sep 2014 10:18:05 +0200
From: My Name <myname@mycompany>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0
MIME-Version: 1.0
To: =?UTF-8############## <myname@mycompany>
Subject: redmine
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by Clam AntiVirus at myserver
X-Priority: 3 (Normal)
Importance: Normal
Priority: normal

Hello Redmine!

tracker: bug

when I call

rdm-mailhandler.pl --url http://myredmine --key ############## \\
--project "test" --allow-override tracker\\
--unknown-user accept --no-permission-check < redmine.eml

it actually creates a new issue with the tracker "Bug" (although the default setting is something else).

What else works:
Sending an email from my email client (thunderbird), specifying project, status, start date, due date, assigned to.

What doesn't work:
If I send an email from my email client, and specify project and tracker, the issue is created with the default tracker, ie the keyword "tracker" is not being read by redmine, it just puts "tracker: bug" below the description. The keyword 'priority' is also being ignored by redmine.
Have you any idea why this is happening and how I can solve it?

Thank you!