Rakefile redmine:email:receive_imap = unexpected token CRLF (expected NUMBER)
Added by Deoren Moor almost 14 years ago
Change directory to Redmine install directory
cd /opt/redmine
Attempt to retrieve email via IMAP
sudo -u www-data rake -f /opt/redmine/Rakefile redmine:email:receive_imap \ RAILS_ENV="production" \ port=993 ssl=1 host=imap-ssl.mail.yahoo.com \ username=MY_USER_ID@@yahoo.com password=1234 \ move_on_success=processed_emails move_on_failure=rejected_emails \ project=unassigned category=unassigned tracker=support \ no_permission_check=1 unknown_user=accept
Error:
unexpected token CRLF (expected NUMBER)
Full trace:
** Invoke redmine:email:receive_imap (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:email:receive_imap rake aborted! unexpected token CRLF (expected NUMBER) /usr/local/lib/ruby/1.8/net/imap.rb:3129:in `parse_error' /usr/local/lib/ruby/1.8/net/imap.rb:2981:in `match' /usr/local/lib/ruby/1.8/net/imap.rb:2969:in `number' /usr/local/lib/ruby/1.8/net/imap.rb:2624:in `search_response' /usr/local/lib/ruby/1.8/net/imap.rb:1986:in `response_untagged' /usr/local/lib/ruby/1.8/net/imap.rb:1950:in `response' /usr/local/lib/ruby/1.8/net/imap.rb:1876:in `parse' /usr/local/lib/ruby/1.8/net/imap.rb:1008:in `get_response' /usr/local/lib/ruby/1.8/net/imap.rb:932:in `receive_responses' /usr/local/lib/ruby/1.8/net/imap.rb:925:in `initialize' /usr/local/lib/ruby/1.8/net/imap.rb:924:in `start' /usr/local/lib/ruby/1.8/net/imap.rb:924:in `initialize' /opt/redmine_todo_whyaskwhy_org/lib/redmine/imap.rb:29:in `new' /opt/redmine_todo_whyaskwhy_org/lib/redmine/imap.rb:29:in `check' /opt/redmine_todo_whyaskwhy_org/lib/tasks/email.rake:133 /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:19:in `load' /usr/local/bin/rake:19
See anything obvious? I've used a similar configuration with a Novell Groupwise server (IMAP) without any trouble.
Thanks for reading this.
Replies (1)
RE: Rakefile redmine:email:receive_imap = unexpected token CRLF (expected NUMBER) - Added by Deoren Moor almost 14 years ago
I noticed that I made an error when I copy/pasted/substituted:
- Duplicate @ symbol
- Forgot to mention gems and ruby versions:
actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5) activeresource (2.3.5) activesupport (2.3.5) daemon_controller (0.2.5) fastthread (1.0.7) file-tail (1.0.5) i18n (0.4.2) mysql (2.8.1) passenger (3.0.4, 3.0.3, 3.0.1, 3.0.0) pg (0.9.0) rack (1.0.1) rails (2.3.5) rake (0.8.7) rmagick (2.13.1) spruz (0.2.2) sqlite3-ruby (1.3.0)
ruby 1.8.7