ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Incoming Email IMAP issues
Added by Ian Thomas at 2011-10-18 10:27 am
We've been trying to get incoming emails set up with the redmine:email:receive_imap facility and have had various problems.
rake -f /var/www/chiliproject/Rakefile redmine:email:receive_imap RAILS_ENV=production host=[REDACTED] username=[REDACTED] password=[REDACTED]
produces the following issue:
rake aborted! undefined method `[]' for nil:NilClass /usr/lib/ruby/1.8/net/imap.rb:1183:in `search_internal' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/1.8/net/imap.rb:1177:in `search_internal' /usr/lib/ruby/1.8/net/imap.rb:681:in `search' /var/www/chiliproject/lib/redmine/imap.rb:28:in `check' /var/www/chiliproject/lib/tasks/email.rake:130 /usr/lib/ruby/1.8/rake.rb:636:in `call' /usr/lib/ruby/1.8/rake.rb:636:in `execute' /usr/lib/ruby/1.8/rake.rb:631:in `each' /usr/lib/ruby/1.8/rake.rb:631:in `execute' /usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:583:in `invoke' /usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task' /usr/lib/ruby/1.8/rake.rb:2029:in `top_level' /usr/lib/ruby/1.8/rake.rb:2029:in `each' /usr/lib/ruby/1.8/rake.rb:2029:in `top_level' /usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2023:in `top_level' /usr/lib/ruby/1.8/rake.rb:2001:in `run' /usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1998:in `run' /usr/bin/rake:28
and rake -f /var/www/chiliproject/Rakefile redmine:email:receive_imap RAILS_ENV=production host=[REDACTED] username=[REDACTED] password=[REDACTED] ssl=false port=143 results in:
rake aborted! SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol /usr/lib/ruby/1.8/net/imap.rb:904:in `connect' /usr/lib/ruby/1.8/net/imap.rb:904:in `initialize' /var/www/chiliproject/lib/redmine/imap.rb:25:in `new' /var/www/chiliproject/lib/redmine/imap.rb:25:in `check' /var/www/chiliproject/lib/tasks/email.rake:130 /usr/lib/ruby/1.8/rake.rb:636:in `call' /usr/lib/ruby/1.8/rake.rb:636:in `execute' /usr/lib/ruby/1.8/rake.rb:631:in `each' /usr/lib/ruby/1.8/rake.rb:631:in `execute' /usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:583:in `invoke' /usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task' /usr/lib/ruby/1.8/rake.rb:2029:in `top_level' /usr/lib/ruby/1.8/rake.rb:2029:in `each' /usr/lib/ruby/1.8/rake.rb:2029:in `top_level' /usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2023:in `top_level' /usr/lib/ruby/1.8/rake.rb:2001:in `run' /usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1998:in `run' /usr/bin/rake:28
I've got incoming email working now using the receive_pop3 alternative but I'm confused why this is erroring - I have the email account set up on my mac and IMAP works flawlessly with the host, port, username and password that are used in the above commands.
Any thoughts!?
Thanks,
Ian
Replies (1)
RE: Incoming Email IMAP issues - Added by Holger Just at 2011-10-18 05:22 pm
[I moved the thread to the Discuss forum]
The first error is probably caused by the IMAP folder that the task expects not being present or your user not having the requied right to access it. By default, it checks "INBOX", but you can override that using folder=inbox
(or whatever your inbox is actually called). Make sure that the folder exists and is accessible to the user.
The second error is caused by the rake task actually trying to use SSL. Although your used syntax seems to imply that it shouldn't, the task just checks if the ssl variable is set, irregardless of the value. SSL secured IMAP access is typically offered on port 993 by servers.
(1-1/1)