rake aborts when fetching mails from imap
Added by Samuel Vogel almost 16 years ago
Hey guys,
I am trying to get redmine to fetch mails from an IMAP server with the following line:
rake redmine:email:receive_imap RAILS_ENV="production" host=imap.domain.de port=993 username=project@domain.de password=xxx ssl=1 project=project
Unfortunately it crashes with the following error message:
(in /usr/local/redmine) ** 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 /usr/lib/ruby/1.8/net/imap.rb:1160:in `search_internal' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/1.8/net/imap.rb:1154:in `search_internal' /usr/lib/ruby/1.8/net/imap.rb:679:in `search' /usr/local/redmine/lib/redmine/imap.rb:32:in `check' /usr/local/redmine/lib/tasks/email.rake:111 /usr/lib/ruby/1.8/rake.rb:617:in `call' /usr/lib/ruby/1.8/rake.rb:617:in `execute' /usr/lib/ruby/1.8/rake.rb:612:in `each' /usr/lib/ruby/1.8/rake.rb:612:in `execute' /usr/lib/ruby/1.8/rake.rb:578:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/1.8/rake.rb:571:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:564:in `invoke' /usr/lib/ruby/1.8/rake.rb:2019:in `invoke_task' /usr/lib/ruby/1.8/rake.rb:1997:in `top_level' /usr/lib/ruby/1.8/rake.rb:1997:in `each' /usr/lib/ruby/1.8/rake.rb:1997:in `top_level' /usr/lib/ruby/1.8/rake.rb:2036:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1991:in `top_level' /usr/lib/ruby/1.8/rake.rb:1970:in `run' /usr/lib/ruby/1.8/rake.rb:2036:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1967:in `run' /usr/bin/rake:28
I am using the latest trunk version of redmine.
Any pointers would be appreciated!
Regards,
Samy
Replies (1)
RE: rake aborts when fetching mails from imap - Added by Samuel Lampa over 12 years ago
I get the same error on connecting to GMail ... any hints or fix for this?