Imap "No block given"

Added by Jpierrre Guicar almost 11 years ago

I'm tring to use Imap. It's seems the connection to the imap server is ok but I get:
rake aborted , no block given

Do anyone can help ?

Imap.rb 1572
Email.rake 2075
Mail_handler.rb 2079

Best regards,

Jean-pierre.

E:\Soft\Redmine\SvnStable07>rake redmine:email:receive_imap RAILS_ENV="production" usernam
e= password=secret project=Infrastructure -
-trace
(in E:/Soft/Redmine/SvnStable07)
  • Invoke redmine:email:receive_imap (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:email:receive_imap
    rake aborted!
    no block given
    E:/Soft/Redmine/SvnStable07/app/models/user.rb:77:in `active'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.
    rb:1693:in `with_scope'
    E:/Soft/Redmine/SvnStable07/app/models/user.rb:76:in `active'
    E:/Soft/Redmine/SvnStable07/app/models/mail_handler.rb:42:in `receive'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/action_mailer/base.
    rb:373:in `receive'
    E:/Soft/Redmine/SvnStable07/app/models/mail_handler.rb:36:in `receive'
    E:/Soft/Redmine/SvnStable07/lib/redmine/imap.rb:35:in `check'
    E:/Soft/Redmine/SvnStable07/lib/redmine/imap.rb:32:in `each'
    E:/Soft/Redmine/SvnStable07/lib/redmine/imap.rb:32:in `check'
    E:/Soft/Redmine/SvnStable07/lib/tasks/email.rake:104
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with
    _call_chain'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize
    '
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with
    _call_chain'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_tas
    k'
    E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'

E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'

E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_e
xception_handling'
E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'

E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_e
xception_handling'
E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
E:/Soft/InstantRail/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
E:/Soft/InstantRail/ruby/bin/rake:19:in `load'
E:/Soft/InstantRail/ruby/bin/rake:19