Project

General

Profile

redmine 1.4 redmine:email:receive_imap issue_edit undefined

Added by Anton Evangelatov over 12 years ago

Hello,

I am trying to make Redmine 1.4 receive emails from Gmail via IMAP, but I get an error = "issue_edit" undefined method. Any ideas how to fix that?

Thank you.

Anton

rake redmine:email:receive_imap RAILS_ENV="production" host=imap.googlemail.com port=993 username= password=xxxxxx ssl=1 --trace unknown_user=accept no_permission_check=1
Please install RDoc 2.4.2+ to generate documentation.
  • Invoke redmine:email:receive_imap (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:email:receive_imap
    rake aborted!
    undefined method `issue_edit' for #<Mailer:0x7fbb68aaf098>
    /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.14/lib/action_mailer/base.rb:492:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.14/lib/action_mailer/base.rb:492:in `core_create!'
    /opt/redmine-1.4/vendor/plugins/orangutan/lib/classes/mailer.rb:6:in `create!'
    /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.14/lib/action_mailer/base.rb:485:in `initialize'
    /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.14/lib/action_mailer/base.rb:428:in `new'
    /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.14/lib/action_mailer/base.rb:428:in `method_missing'
    /opt/redmine-1.4/app/models/journal_observer.rb:26:in `after_create'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:171:in `send'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:171:in `update'
    /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers'
    /usr/lib/ruby/1.8/observer.rb:184:in `each'
    /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:357:in `notify'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:350:in `callback'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:267:in `create'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2927:in `create_or_update_without_callbacks'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:250:in `create_or_update'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2577:in `save_without_validation'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/validations.rb:1089:in `save_without_dirty'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/dirty.rb:79:in `save_without_transactions'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:229:in `send'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:182:in `transaction'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:196:in `save'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:196:in `save'
    /opt/redmine-1.4/app/models/journal.rb:47:in `save'
    /opt/redmine-1.4/app/models/issue.rb:1045:in `create_journal'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `send'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `evaluate_method'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:166:in `call'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:93:in `run'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:92:in `each'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:92:in `send'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:92:in `run'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:276:in `run_callbacks'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:344:in `callback'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:251:in `create_or_update'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2594:in `save_without_validation!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/validations.rb:1099:in `save_without_dirty!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/dirty.rb:87:in `save_without_transactions!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:200:in `save!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:182:in `transaction'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:200:in `save!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:200:in `save!'
    /opt/redmine-1.4/app/models/mail_handler.rb:194:in `receive_issue_reply'
    /opt/redmine-1.4/app/models/mail_handler.rb:122:in `send'
    /opt/redmine-1.4/app/models/mail_handler.rb:122:in `dispatch'
    /opt/redmine-1.4/app/models/mail_handler.rb:107:in `receive'
    /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.14/lib/action_mailer/base.rb:452:in `receive'
    /opt/redmine-1.4/app/models/mail_handler.rb:42:in `receive'
    /opt/redmine-1.4/lib/redmine/imap.rb:35:in `check'
    /opt/redmine-1.4/lib/redmine/imap.rb:32:in `each'
    /opt/redmine-1.4/lib/redmine/imap.rb:32:in `check'
    /opt/redmine-1.4/lib/tasks/email.rake:133
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
    /usr/bin/rake:23:in `load'
    /usr/bin/rake:23
    Tasks: TOP => redmine:email:receive_imap

Replies (2)

RE: redmine 1.4 redmine:email:receive_imap issue_edit undefined - Added by Anton Evangelatov over 12 years ago

I still can't get this ReceivingEmails to work. I am following this guide: http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails

Any help is appreciated.

best,
Anton

RE: redmine 1.4 redmine:email:receive_imap issue_edit undefined - Added by Jean-Philippe Lang over 12 years ago

This error comes from the orangutan plugin (look at the stack trace), please retry without plugins.

    (1-2/2)