Project

General

Profile

Incoming emails not updating issue fields in Redmine

Added by Jai prakash about 7 years ago

I am trying to set up Redmine so that it can receive emails to create tickets . The command I use to fetch emails is

rake --trace redmine:email:receive_pop3 RAILS_ENV="production" host=my.mail.server port=110 username=born@mydomain.com password=***** project=foobar

email contents are like

Project: foobar
Tracker: Bugz
Status: New
Priority: Normal

On receiving this email redmine created a new ticket . However fields Tracker,Status and Priority is not getting updated with the values from email . Instead the entire email body is getting updated in Description field of the new ticket. Are my emails not in the correct format ?


Replies (4)

RE: Incoming emails not updating issue fields in Redmine - Added by Mischa The Evil about 7 years ago

Jai prakash wrote:

[...]
rake --trace redmine:email:receive_pop3 RAILS_ENV="production" host=my.mail.server port=110 username=born@mydomain.com password=***** project=foobar
[...]
[...] However fields Tracker,Status and Priority is not getting updated with the values from email . Instead the entire email body is getting updated in Description field of the new ticket. Are my emails not in the correct format ?

You seem to have missed the configuration of the allow_override=ATTRS issue attribute control option. See RedmineReceivingEmails#Fetching-emails-from-a-POP3-server or the source code (comments) itself in source:/trunk/lib/tasks/email.rake.

RE: Incoming emails not updating issue fields in Redmine - Added by Jai prakash about 7 years ago

Mischa The Evil wrote:

Jai prakash wrote:

[...]
rake --trace redmine:email:receive_pop3 RAILS_ENV="production" host=my.mail.server port=110 username=born@mydomain.com password=***** project=foobar
[...]
[...] However fields Tracker,Status and Priority is not getting updated with the values from email . Instead the entire email body is getting updated in Description field of the new ticket. Are my emails not in the correct format ?

You seem to have missed the configuration of the allow_override=ATTRS issue attribute control option. See RedmineReceivingEmails#Fetching-emails-from-a-POP3-server or the source code (comments) itself in source:/trunk/lib/tasks/email.rake.

yes thank you . That fixed it.

RE: Incoming emails not updating issue fields in Redmine - Added by Tuan Phan Anh about 7 years ago

Hi Jai prakash,
Do you scheduling email receiving? If yes can you help me with this. I tried using cron and rufus but both generate error.
Currently I am scheduling email receiving by using a script manually.
Below is my script. I run script manually using "./getmail.sh &"

[root@portal ~]# cat getmail.sh
#!/bin/bash
while true
do
rake -f /var/www/redmine/Rakefile redmine:email:receive_imap RAILS_ENV=production host=x.y.z username= password="xxxxxx" port=993 ssl=SSL priority=normal project=customer-support tracker=support allow_override=all unknown_user=accept no_permission_check=1 no_account_notice=0 move_on_success=Success move_on_failure=Failure
sleep 60
done

RE: Incoming emails not updating issue fields in Redmine - Added by Jai prakash about 7 years ago

what sort of error are you getting while running the Rake task as a cron . In my case I just put it as a new cron job using crontab -e

    (1-4/4)