Project

General

Profile

RESOLVED: Unknown namespace, at receiving mails from IMAP

Added by Declent Logester over 11 years ago

Hi,

I'm using a cronjob to receive mails from my IMPA account,these work great but the mails are not moved to the mentioned folder, I always get following trace:

WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /usr/lib/ruby/vendor_ruby/rake/rdoctask.rb
** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap
rake aborted!
Unknown namespace.
/usr/lib/ruby/1.8/net/imap.rb:1004:in `pick_up_tagged_response'
/usr/lib/ruby/1.8/net/imap.rb:997:in `get_tagged_response'
/usr/lib/ruby/1.8/net/imap.rb:1055:in `send_command'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/net/imap.rb:1040:in `send_command'
/usr/lib/ruby/1.8/net/imap.rb:1217:in `copy_internal'
/usr/lib/ruby/1.8/net/imap.rb:749:in `copy'
/usr/share/redmine/lib/redmine/imap.rb:38:in `check'
/usr/share/redmine/lib/redmine/imap.rb:32:in `each'
/usr/share/redmine/lib/redmine/imap.rb:32:in `check'
/usr/share/redmine/lib/tasks/email.rake:133
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `call'
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:144:in `invoke'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `each'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:88:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:66:in `run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27
Tasks: TOP => redmine:email:receive_imap

Here is my command:

/usr/bin/rake --trace -f /usr/share/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=HOST port=PORT ssl=1 username=my@mailbox.tld password=12234 move_on_success=Success move_on_failure=Failed

I have checked the typing and the location of the folders (INBOX/Success and INBOX/Failed), in Thunderbird moving Mails from one folder to the other works.

Environment: Ubuntu 12.04 TLS
Redmine version 2.2.3.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.12
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed


Replies (2)

RE: Unknown namespace, at receiving mails from IMAP - Added by Declent Logester over 11 years ago

I have found the solutions by my self, I have to use the correct IMAP folder naming convention.

...move_on_success=INBOX.Success move_on_failure=INBOX.Failed...

RE: RESOLVED: Unknown namespace, at receiving mails from IMAP - Added by James Rowe over 11 years ago

Thanks for posting your solution. this also worked for me.

CentOS

# uname -a
Linux 2.6.32-20130307.60.9.bh6.x86_64 #1 SMP Thu Mar 7 15:58:33 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
Redmine version 2.3-stable
Ruby version 1.8.7

    (1-2/2)