Project

General

Profile

Problem retrieving pop3 email - Rake: Don´t know how to build task environment...

Added by Ezequiel Naftali almost 14 years ago

Hi,
I´m configuring Redmine for the first time. Everything works fine except for the incoming emails part.
I have downloaded the latest version of email.rake
and I´m invoking it using the following command:

rake -f "C:\Archivos de programa\BitNami Redmine Stack\apps\redmine\lib\tasks\email.rake" RAILS_ENV=production redmine:email:receive_pop3 host=foohost username=user password=pass

I get:

...(in C:/Archivos de programa/BitNami Redmine Stack/ruby/bin)
rake aborted!
Don't know how to build task 'environment'

I have read a similar message in the forum but I couldn´t understand how to solve it.

I´m running windows btw.

Thanks,

Ezequiel


Replies (3)

RE: Problem retrieving pop3 email - Rake: Don´t know how to build task environment... - Added by Sibi Dinesh about 13 years ago

Please try this.

rake -f "C:\Archivos de programa\BitNami Redmine Stack\apps\redmine\Rakefile"
RAILS_ENV=production redmine:email:receive_pop3 host=foohost username=user password=pass

RE: Problem retrieving pop3 email - Rake: Don´t know how to build task environment... - Added by Etienne Massip about 13 years ago

On Windows, you need to set the RAILS_ENV env var apart from the rake command.

E.g. :

set RAILS_ENV=production
rake -f "C:\Archivos de programa\BitNami Redmine Stack\apps\redmine\lib\tasks\email.rake" redmine:email:receive_pop3 host=foohost username=user password=pass

Or, maybe :

set RAILS_ENV=production && rake -f "C:\Archivos de programa\BitNami Redmine Stack\apps\redmine\lib\tasks\email.rake" redmine:email:receive_pop3 host=foohost username=user password=pass

    (1-3/3)