Incoming Mail IMAP Error
Added by Maulik Gordhandas over 14 years ago
Dear All,
I am facing an error while trying to receive emails from my IMAP Server.
As per the wiki entry I executed the following command :
/usr/bin/rake -f /home/user/redmine/Rakefile redmine:email:receive_imap RAILS_ENV=production host=imap.example.com username=redmine@example.com password=xxxx --trace
I get the following error :
** Invoke redmine:email:receive_imap (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:email:receive_imap rake aborted! unexpected token RBRA (expected SPACE) /usr/lib/ruby/1.8/net/imap.rb:3124:in `parse_error' /usr/lib/ruby/1.8/net/imap.rb:2976:in `match' /usr/lib/ruby/1.8/net/imap.rb:2767:in `resp_text_code' /usr/lib/ruby/1.8/net/imap.rb:2743:in `resp_text' /usr/lib/ruby/1.8/net/imap.rb:2007:in `response_tagged' /usr/lib/ruby/1.8/net/imap.rb:1952:in `response' /usr/lib/ruby/1.8/net/imap.rb:1876:in `parse' /usr/lib/ruby/1.8/net/imap.rb:1008:in `get_response' /usr/lib/ruby/1.8/net/imap.rb:932:in `receive_responses' /usr/lib/ruby/1.8/net/imap.rb:925:in `initialize' /usr/lib/ruby/1.8/net/imap.rb:924:in `start' /usr/lib/ruby/1.8/net/imap.rb:924:in `initialize' /home/user/redmine/lib/redmine/imap.rb:29:in `new' /home/user/redmine/lib/redmine/imap.rb:29:in `check' /home/user/redmine/lib/tasks/email.rake:133 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19
My Redmine Version is :
Redmine : 0.9.2
Ruby : ruby 1.8.7 (2009-06-08 patchlevel 173) [i686-linux]
Please help.
Thanks a lot..
Replies (3)
RE: Incoming Mail IMAP Error - Added by Felix Schäfer over 14 years ago
This is a problem with the ruby imap library and your MTA, I was able to find this through google: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7233&group_id=426 I suggest continuing your search on that front.
RE: Incoming Mail IMAP Error - Added by Lu Pon over 14 years ago
Hi, here I have the same problem.. I'm using:
Redmine 1.0.0
Ruby 1.8.6
Rake 0.8.7
any idea?
RE: Incoming Mail IMAP Error - Added by Lu Pon over 14 years ago
Finally it works... I don't know why, but using the script in this way works:
rake redmine:email:receive_imap unknown_user=accept no_permission_check=1 RAILS_ENV="production" host=imap.gmail.com port=993 username=xxxxx password=xxxxx ssl=1 move_on_success=peticion move_on_failure=peticionerror project=consultas