redmine 1.4.1 e-mail to issue

Added by Bert De Knijf over 5 years ago

Hi,

I have configured my redmine to create new issues from email.
When multiple mails arrive (at the same time) in the inbox not all of them are converted into issues on the site.
Seems to be at random that some mails are picked up by the script and others not ....

config:

export PATH=/usr/lib/git-core:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

cd /var/www/railsapp

/usr/local/bin/rake -f Rakefile redmine:email:receive_imap ssl=1 RAILS_ENV="production" host=imap.googlemail.com port=993 username= password=XXXX move_on_success=success move_on_failure=fail project=md-internal tracker=Issue priority=Normal unknown_user=accept no_permission_check=1 --trace

trace output:

root@redmine www/railsapp# /usr/local/bin/rake -f Rakefile redmine:email:receive _imap ssl=1 RAILS_ENV="production" host=imap.googlemail.com port=993 username= password=XXXX move_on_success=success move_on_failure=fail project=test1 tracker=Issue priority =Normal unknown_user=accept no_permission_check=1 --trace
Please install RDoc 2.4.2+ to generate documentation.
  • Invoke redmine:email:receive_imap (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:email:receive_imap
    rake aborted!
    undefined method `[]' for nil:NilClass
    /var/www/redmine-1.4.1/lib/redmine/imap.rb:33:in `check'
    /var/www/redmine-1.4.1/lib/redmine/imap.rb:32:in `each'
    /var/www/redmine-1.4.1/lib/redmine/imap.rb:32:in `check'
    /var/www/redmine-1.4.1/lib/tasks/email.rake:133
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_w ith_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_w ith_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `i nvoke_task'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `to p_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `ea ch'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `to p_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `s tandard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `to p_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `ru n'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `s tandard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `ru n'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
    /usr/local/bin/rake:19:in `load'
    /usr/local/bin/rake:19
    Tasks: TOP => redmine:email:receive_imap

Replies (1)

RE: redmine 1.4.1 e-mail to issue - Added by Pierre Pretorius over 4 years ago

I was able to solve this issue and attached the patch to http://www.redmine.org/issues/14101

(1-1/1)