redmine意外令牌ATOM(预期SPACE)

时间:2012-03-14 02:15:10

标签: ruby-on-rails ruby redmine

我已经为我的大学在校园服务器上安装了redmine服务器0.9.3和ruby 1.8.7,以便将我的项目保留在那里,但我收到以下错误意外令牌ATOM(预期SPACE)当试图通过imap收到传入的电子邮件时。

我该如何解决这个问题?

sudo rake redmine:email:receive_imap -f /usr/share/redmine/Rakefile --silent redmine:email:receive_imap unknown_user=accept no_permission_check=1 RAILS_ENV="production" host=imap.uniandes.edu.co port=995 ssl=true username=xxx password=xxx --trace

** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap
rake aborted!
unexpected token ATOM (expected SPACE)
/usr/lib/ruby/1.8/net/imap.rb:3129:in `parse_error'
/usr/lib/ruby/1.8/net/imap.rb:2981:in `match'
/usr/lib/ruby/1.8/net/imap.rb:1961:in `continue_req'
/usr/lib/ruby/1.8/net/imap.rb:1948: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:917:in `initialize'
/usr/share/redmine/lib/redmine/imap.rb:29:in `new'
/usr/share/redmine/lib/redmine/imap.rb:29:in `check'
/usr/share/redmine/lib/tasks/email.rake:133
/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

谢谢!

1 个答案:

答案 0 :(得分:1)

尝试不使用ssl,它帮助了我。